Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
643cf8f6
Commit
643cf8f6
authored
Jul 02, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
72
parent
30620084
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
webpack.prod.conf.js
build/webpack.prod.conf.js
+2
-3
No files found.
build/webpack.prod.conf.js
View file @
643cf8f6
...
@@ -27,7 +27,7 @@ const webpackConfig = merge(baseWebpackConfig, {
...
@@ -27,7 +27,7 @@ const webpackConfig = merge(baseWebpackConfig, {
// filename: utils.assetsPath(env.versionTime+'/js/[name].[chunkhash].js'),
// filename: utils.assetsPath(env.versionTime+'/js/[name].[chunkhash].js'),
// chunkFilename: utils.assetsPath(env.versionTime+'/js/[id].[chunkhash].js'),
// chunkFilename: utils.assetsPath(env.versionTime+'/js/[id].[chunkhash].js'),
filename
:
utils
.
assetsPath
(
'js/[name].[chunkhash].js'
),
filename
:
utils
.
assetsPath
(
'js/[name].[chunkhash].js'
),
chunkFilename
:
utils
.
assetsPath
(
'js/[
id
].[chunkhash].js'
)
chunkFilename
:
utils
.
assetsPath
(
'js/[
name
].[chunkhash].js'
)
},
},
plugins
:
[
plugins
:
[
// http://vuejs.github.io/vue-loader/en/workflow/production.html
// http://vuejs.github.io/vue-loader/en/workflow/production.html
...
@@ -112,7 +112,7 @@ const webpackConfig = merge(baseWebpackConfig, {
...
@@ -112,7 +112,7 @@ const webpackConfig = merge(baseWebpackConfig, {
name
:
'app'
,
name
:
'app'
,
async
:
'vendor-async'
,
async
:
'vendor-async'
,
children
:
true
,
children
:
true
,
minChunks
:
3
minChunks
:
5
}),
}),
// copy custom static assets
// copy custom static assets
...
@@ -128,7 +128,6 @@ const webpackConfig = merge(baseWebpackConfig, {
...
@@ -128,7 +128,6 @@ const webpackConfig = merge(baseWebpackConfig, {
if
(
config
.
build
.
productionGzip
)
{
if
(
config
.
build
.
productionGzip
)
{
const
CompressionWebpackPlugin
=
require
(
'compression-webpack-plugin'
)
const
CompressionWebpackPlugin
=
require
(
'compression-webpack-plugin'
)
webpackConfig
.
plugins
.
push
(
webpackConfig
.
plugins
.
push
(
new
CompressionWebpackPlugin
({
new
CompressionWebpackPlugin
({
asset
:
'[path].gz[query]'
,
asset
:
'[path].gz[query]'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment