|
@@ -33,20 +33,31 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|
'process.env': env
|
|
'process.env': env
|
|
}),
|
|
}),
|
|
new UglifyJsPlugin({
|
|
new UglifyJsPlugin({
|
|
|
|
+ // uglifyOptions: {
|
|
|
|
+ // compress: {
|
|
|
|
+ // warnings: false
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // sourceMap: config.build.productionSourceMap,
|
|
|
|
+ // parallel: true
|
|
|
|
+ parallel: 4,
|
|
uglifyOptions: {
|
|
uglifyOptions: {
|
|
|
|
+ output: {
|
|
|
|
+ comments: false,
|
|
|
|
+ beautify: false,
|
|
|
|
+ },
|
|
compress: {
|
|
compress: {
|
|
warnings: false
|
|
warnings: false
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- sourceMap: config.build.productionSourceMap,
|
|
|
|
- parallel: true
|
|
|
|
|
|
+ cache: true,
|
|
}),
|
|
}),
|
|
// extract css into its own file
|
|
// extract css into its own file
|
|
new ExtractTextPlugin({
|
|
new ExtractTextPlugin({
|
|
filename: utils.assetsPath('css/[name].[contenthash].css'),
|
|
filename: utils.assetsPath('css/[name].[contenthash].css'),
|
|
// Setting the following option to `false` will not extract CSS from codesplit chunks.
|
|
// Setting the following option to `false` will not extract CSS from codesplit chunks.
|
|
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
|
|
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
|
|
- // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
|
|
|
|
|
|
+ // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
|
|
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
|
|
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
|
|
allChunks: true,
|
|
allChunks: true,
|
|
}),
|
|
}),
|