diff --git a/vue.config.js b/vue.config.js index ab2771e..b3a8715 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,10 @@ module.exports = { + lintOnSave: true, + // 配置webpack打包 + configureWebpack: (config) => { + // 取消console打印 + config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true + }, devServer: { proxy: { '/api': {