mall-uniapp/vue.config.js

12 lines
565 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

module.exports = {
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']
// }
}
}