2022-04-10 01:21:21 +08:00
|
|
|
|
module.exports = {
|
2023-05-15 10:12:22 +08:00
|
|
|
|
productionSourceMap: true, // 生产打包时不输出map文件,增加打包速度
|
|
|
|
|
configureWebpack: config => {
|
|
|
|
|
// if (process.env.NODE_ENV === 'production') {
|
|
|
|
|
// config.optimization.minimizer[0].options.terserOptions.compress.warnings = false
|
|
|
|
|
// config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
|
|
|
|
|
// config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true
|
|
|
|
|
// config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = ['console.log']
|
|
|
|
|
// }
|
|
|
|
|
}
|
2022-04-10 01:21:21 +08:00
|
|
|
|
}
|