xgj 1 month ago
parent
commit
4c00d1a38e
2 changed files with 2 additions and 1 deletions
  1. 1 1
      package.json
  2. 1 0
      vite.config.ts

+ 1 - 1
package.json

@@ -29,7 +29,7 @@
     "serve": "vite",
     "build:dev": "vite build --mode development",
     "build:test": "vue-tsc && vite build --mode test",
-    "build": "vue-tsc && vite build --mode production",
+    "build": "vite build --mode production",
     "build:pro": "vue-tsc && vite build --mode production",
     "type:check": "vue-tsc --noEmit --skipLibCheck",
     "preview": "pnpm build:dev && vite preview",

+ 1 - 0
vite.config.ts

@@ -38,6 +38,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
       }
     },
     plugins: createVitePlugins(viteEnv),
+
     esbuild: {
       pure: viteEnv.VITE_DROP_CONSOLE ? ["console.log", "debugger"] : []
     },