Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
vue.config.js 548 Bytes
Copy Edit Raw Blame History
GavinZhulei authored 2019-06-03 14:18 . 整理package.json
const TerserPlugin = require('terser-webpack-plugin')
module.exports = {
productionSourceMap: false,
publicPath: './',
configureWebpack: config => {
let plugins = [
new TerserPlugin({
terserOptions: {
compress: {
warnings: false,
drop_debugger: false,
drop_console: true,
},
},
sourceMap: false,
parallel: true,
})
]
if (process.env.NODE_ENV !== 'development') {
config.plugins = [...config.plugins, ...plugins]
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化