From ee5f49663a7ff7c8b7e660db1a09ed67bc2c9229 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sun, 9 Jul 2023 22:14:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=8C=87=E5=AE=9A=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E8=AE=BE=E8=AE=A1=E5=99=A8=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud/bigscreen-design/vite.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloud/bigscreen-design/vite.config.js b/cloud/bigscreen-design/vite.config.js index 2911aa2..daebe31 100755 --- a/cloud/bigscreen-design/vite.config.js +++ b/cloud/bigscreen-design/vite.config.js @@ -5,9 +5,11 @@ import { OUTPUT_DIR } from '../../build/constant' // https://vitejs.dev/config/ export default ({ mode, command }) => { - const env = loadEnv(mode, process.cwd()) + const root = process.cwd() + const env = loadEnv(mode, root) const { VITE_APP_BASE } = env return defineConfig({ + root, base: VITE_APP_BASE, resolve: { alias: {