Browse Source

chore: 覆盖编译目录

zhangyuhan 1 year ago
parent
commit
9f4860f1cc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/mobile/vite.config.js

+ 1 - 0
apps/mobile/vite.config.js

@@ -35,6 +35,7 @@ export default defineConfig(({command}) => {
     base: '/jy_mobile/',
     build: {
       outDir: '../../dist/jy_mobile',
+      emptyOutDir: true,
       // terserOptions: {
       //   compress: {
       //     drop_console: false, // 默认为true