From 325cc93e03993928d287128dbff4719138c74958 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Wed, 27 Mar 2024 11:27:12 +0800 Subject: [PATCH] =?UTF-8?q?build/utils.ts=20=E4=BF=AE=E5=A4=8D=20#1130?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/utils.ts b/build/utils.ts index c201514..902d4bb 100644 --- a/build/utils.ts +++ b/build/utils.ts @@ -50,7 +50,9 @@ export function wrapperEnv(envConf: Recordable): ViteEnv { */ function getConfFiles() { const script = process.env.npm_lifecycle_script; - const reg = new RegExp('--mode ([a-z_\\d]+)'); + // update-begin--author:liaozhiyang---date:20240326---for:【QQYUN-8690】修正获取当前环境下的文件名 + const reg = new RegExp('NODE_ENV=([a-z_\\d]+)'); + // update-end--author:liaozhiyang---date:20240326---for:【QQYUN-8690】修正获取当前环境下的文件名 const result = reg.exec(script as string) as any; if (result) { const mode = result[1] as string;