From 071fd54001856aafbf56b21f067ae3863f76c4f0 Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Fri, 28 Apr 2023 10:27:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=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, 2 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index 2ba5f3d..f729b5e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,8 +1,8 @@ module.exports = { - baseUrl: process.env.NODE_ENV === "production" ? "./" : "/", + baseUrl: process.env.NODE_ENV === "production"||process.env.NODE_ENV=='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",