perf: optimize bundle size and add build optimizations
All checks were successful
CI / update (push) Successful in 1m23s

- Move HTML stripping to server-side to remove cheerio from client bundle (247KB reduction)
- Add terser minification with console/debugger removal
- Enable manual code chunking for chart.js and auth libraries
- Convert TTF fonts to WOFF2 format (~900KB savings)
- Enable brotli/gzip precompression in adapter
- Update CSS to prefer WOFF2 with TTF fallback
This commit is contained in:
2026-01-19 21:46:03 +01:00
parent a48ae3ff3c
commit 5598b19ec9
15 changed files with 217 additions and 48 deletions

View File

@@ -34,6 +34,7 @@
"jsdom": "^27.2.0",
"svelte": "^5.38.6",
"svelte-check": "^4.0.0",
"terser": "^5.46.0",
"tslib": "^2.6.0",
"typescript": "^5.1.6",
"vite": "^7.1.3",