From cfbefb10abe4f11420db2e08806c1acb15fe9a23 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Mon, 2 Dec 2024 18:37:13 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=B2=BE=E7=AE=80=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index ee0a5a9e..bdf2e147 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,8 +13,7 @@ import svgLoader from "vite-svg-loader" // Configuring Vite: https://cn.vite.dev/config export default defineConfig(({ mode }) => { - const root = process.cwd() - const { VITE_PUBLIC_PATH } = loadEnv(mode, root, "") as ImportMetaEnv + const { VITE_PUBLIC_PATH } = loadEnv(mode, process.cwd(), "") as ImportMetaEnv return { // 开发或打包构建时用到的公共基础路径 base: VITE_PUBLIC_PATH,