From 35eb28c4c9e2e4b0f2339b5183e5ee849bf8f6ac Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 21 May 2020 17:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 49b05b59f..e83d6bda5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -109,7 +109,9 @@ module.exports = { ignore: ['.*'] } ])); - config.plugins.push(new BundleAnalyzerPlugin()); + if (process.env.NODE_ENV == 'production') { + config.plugins.push(new BundleAnalyzerPlugin()); + } const externalsConfig = { // 'vue': 'Vue', // 'vuex': 'Vuex',