Huanyuyuehui/vue.config.js

13 lines
593 B
JavaScript
Raw Normal View History

2024-03-21 17:52:58 +08:00
module.exports = {
2024-04-22 09:54:11 +08:00
transpileDependencies: ['@climblee/uv-ui'],
2024-03-21 17:52:58 +08:00
productionSourceMap: false, // 生产打包时不输出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']
}
}
}