From e21d454e14809c48e82f42edfa20747c5cb7e5ed Mon Sep 17 00:00:00 2001 From: zhuangjiaren Date: Tue, 16 Dec 2025 14:02:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + config/config.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7237b34a..aea9df20 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ yarn-error.log /coverage .idea +pnpm-lock.yaml yarn.lock package-lock.json *bak diff --git a/config/config.ts b/config/config.ts index f288bcfb..7e2e38da 100644 --- a/config/config.ts +++ b/config/config.ts @@ -26,6 +26,13 @@ export default defineConfig({ publicPath: PUBLIC_PATH, + /** + * @name 输出路径配置 + * @description 显式设置输出路径为相对路径,避免Windows系统下路径拼接错误 + * @doc https://umijs.org/docs/api/config#outputpath + */ + outputPath: 'dist', + /** * @name 兼容性设置 * @description 设置 ie11 不一定完美兼容,需要检查自己使用的所有依赖 @@ -168,7 +175,7 @@ export default defineConfig({ mock: { include: ['mock/**/*', 'src/pages/**/_mock.ts'], }, - utoopack: {}, + utoopack: false, requestRecord: {}, exportStatic: {}, define: {