优化代码
This commit is contained in:
@@ -33,15 +33,21 @@ const webpackConfig = merge(baseWebpackConfig, {
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': env
|
||||
}),
|
||||
new UglifyJsPlugin({
|
||||
uglifyOptions: {
|
||||
compress: {
|
||||
warnings: false
|
||||
}
|
||||
},
|
||||
sourceMap: config.build.productionSourceMap,
|
||||
parallel: true
|
||||
}),
|
||||
// new UglifyJsPlugin({
|
||||
// uglifyOptions: {
|
||||
// compress: {
|
||||
// warnings: false,
|
||||
// drop_console: true,
|
||||
// pure_funcs: ['console.log']
|
||||
// },
|
||||
// mangle: false,
|
||||
// output: {
|
||||
// beautify: true
|
||||
// }
|
||||
// },
|
||||
// sourceMap: config.build.productionSourceMap,
|
||||
// parallel: true
|
||||
// }),
|
||||
// extract css into its own file
|
||||
new ExtractTextPlugin({
|
||||
filename: utils.assetsPath('css/[name].css?v=' + version), // css/[name].[contenthash].css
|
||||
|
||||
Reference in New Issue
Block a user