Browse Source

配置打包路径

master-xiaowang
mk 3 months ago
parent
commit
c80a61809f
  1. 2
      .gitignore
  2. 9
      vite.config.ts

2
.gitignore

@ -8,7 +8,7 @@ pnpm-debug.log*
lerna-debug.log*
node_modules
dist
epmet-apartment-front
dist-ssr
*.local

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

Loading…
Cancel
Save