在build webpack.prod.conf.js
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false,
drop_debugger: true,
drop_console: true // 打包之后关闭console.log
}
},
sourceMap: config.build.productionSourceMap,
parallel: true
所有评论(0)