Twan07 commited on
Commit
f454dd0
·
verified ·
1 Parent(s): 53255b0

Update vite.config.ts

Browse files
Files changed (1) hide show
  1. vite.config.ts +7 -0
vite.config.ts CHANGED
@@ -13,4 +13,11 @@ export default defineConfig({
13
  port: 5173,
14
  },
15
  plugins: [react()],
 
 
 
 
 
 
 
16
  });
 
13
  port: 5173,
14
  },
15
  plugins: [react()],
16
+ esbuild: {
17
+ drop: ['console', 'debugger'], // Xóa log
18
+ },
19
+ build: {
20
+ sourcemap: false, // Ẩn code gốc
21
+ minify: 'esbuild', // Nén code nhỏ nhất có thể
22
+ },
23
  });