From a6c407aeea79ed2e2193381e39ded0027b074aec Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Wed, 17 May 2023 15:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 0301cff..4a6e846 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,7 +5,7 @@ module.exports = { baseUrl: process.env.NODE_ENV === "production"|| "test" ? "./" : "/", outputDir: process.env.outputDir, configureWebpack: config => { - if (process.env.NODE_ENV === "production") { + if (process.env.NODE_ENV === "production" || process.env.NODE_ENV === "test" ) { // 为生产环境修改配置... config.externals = { vue: "Vue",