From 84880525fe81c31550e628673132dbd9f56c8158 Mon Sep 17 00:00:00 2001 From: Lee-1203 <342694918@qq.com> Date: Wed, 9 Mar 2022 15:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 6 ++++++ 1 file changed, 6 insertions(+) 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': {