From c80a61809f6b7d2c82f98dc9c7c933898d10e172 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 29 May 2025 15:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=89=93=E5=8C=85=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- vite.config.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a547bf3..5f16843 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist +epmet-apartment-front dist-ssr *.local diff --git a/vite.config.ts b/vite.config.ts index 2ed6e4a..221dd30 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,6 +7,12 @@ import { ArcoResolver } from 'unplugin-vue-components/resolvers' import { vitePluginForArco } from '@arco-plugins/vite-vue' // https://vitejs.dev/config/ export default defineConfig({ + publicDir: 'epmet-apartment-front', + // Vite 配置中没有 outputDir 属性,应使用 build.outDir 来指定输出目录 + build: { + outDir: "epmet-apartment-front", + target:['edge90','chrome90','firefox90','safari15'] + }, plugins: [ vue(), //自动加载组件样式 @@ -26,9 +32,6 @@ export default defineConfig({ ], }), ], - build:{ - target:['edge90','chrome90','firefox90','safari15'] - }, resolve: { //配置路径别名 alias: [