安装 webpack.prod.conf.js
"uglifyjs-webpack-plugin": "^2.2.0", npm i uglifyjs-webpack-plugin
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
new UglifyJsPlugin({ uglifyOptions: { compress: { drop_debugger: true, drop_console: true } }, sourceMap: config.build.productionSourceMap, parallel: true })