feat: add terser for advanced minification and improve React chunking

- Added terser as a dependency for enhanced code minification.
- Updated Vite configuration to enable aggressive minification using terser with options to drop console logs and unused code.
- Refined manual chunking for React libraries to improve code splitting and loading efficiency.
This commit is contained in:
typist
2025-10-29 09:06:56 +08:00
parent aca7e11835
commit 3e14bc652f
3 changed files with 30 additions and 5 deletions

View File

@@ -44,6 +44,7 @@
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.22",
"globals": "^16.4.0",
"terser": "^5.44.0",
"tsx": "^4.19.2",
"tw-animate-css": "^1.4.0",
"typescript": "~5.9.3",