修改build文件夹中webpack.prod.conf.js的内容如下:
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
drop_debugger: true
drop_console: true
}
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),