1:找到目录:
build/webpack.prod.conf.js
2:代码
new UglifyJsPlugin({
uglifyOption:{
compress:{
warnings:false,
drop_debugger:true,
drop_console:true,
pure_funcs:["console.log"]
}
}
})
3:打包上线