diff --git a/vite.config.ts b/vite.config.ts index 0332dbde..5c0586f7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -63,7 +63,8 @@ export default defineConfig({ build: { target: 'es2015', outDir: OUTPUT_DIR, - terserOptions: terserOptions, + // minify: 'terser', // 如果需要用terser混淆,可打开这两行 + // terserOptions: terserOptions, rollupOptions: rollupOptions, brotliSize: brotliSize, chunkSizeWarningLimit: chunkSizeWarningLimit