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: [