浏览代码

chore: 覆盖编译目录

zhangyuhan 1 年之前
父节点
当前提交
9f4860f1cc
共有 1 个文件被更改,包括 1 次插入0 次删除
  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/',
     base: '/jy_mobile/',
     build: {
     build: {
       outDir: '../../dist/jy_mobile',
       outDir: '../../dist/jy_mobile',
+      emptyOutDir: true,
       // terserOptions: {
       // terserOptions: {
       //   compress: {
       //   compress: {
       //     drop_console: false, // 默认为true
       //     drop_console: false, // 默认为true