perf: optimize build — chunk splitting, remove VueDevTools from prod, fix firebase-tools to devDeps

- vite.config.ts: Remove VueDevTools from production build (dev only)
- vite.config.ts: Add manualChunks for firebase, charts, pdf, vue, maps vendors
- vite.config.ts: Increase chunkSizeWarningLimit to 700KB for Google Maps
- package.json: Move firebase-tools from dependencies to devDependencies
- router/index.ts: Add webpackChunkName groups (transport, discover, user, admin, roles)
- Clean up build log files (build_debug.txt, build_error*.txt, etc.)

Build time improvement: chunks now load on demand per user role
This commit is contained in:
2026-02-22 16:19:27 -05:00
parent b0d6aacc6e
commit 2b7e193906
3 changed files with 186 additions and 137 deletions

View File

@ -18,7 +18,6 @@
"axios": "^1.13.2",
"chart.js": "^4.5.1",
"firebase": "^12.9.0",
"firebase-tools": "^15.7.0",
"html2canvas": "^1.4.1",
"jspdf": "^4.1.0",
"pinia": "^3.0.4",
@ -33,6 +32,7 @@
"@vitejs/plugin-vue": "^6.0.1",
"@vue/tsconfig": "^0.8.1",
"autoprefixer": "^10.4.24",
"firebase-tools": "^15.7.0",
"postcss": "^8.5.6",
"tailwindcss": "^4.2.0",
"typescript": "~5.9.3",