Spaces:
Running
Running
Update vite.config.ts
Browse files- 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 |
});
|