Problem Statement
The Angular build enforced size budgets (initial bundle: warn 1 MB / error 2 MB, component styles: 10/20 KB) and failed the production build when exceeded. The Vite build on main ("tsc -b && vite build") has no size check at all, so bundle bloat ships unnoticed.
Proposed Solution
Add a bundle size check to the build (e.g. a small script run after vite build, or a size-limit tool) that fails or warns when the entry bundle or total JS exceeds a defined budget.
Problem Statement
The Angular build enforced size budgets (initial bundle: warn 1 MB / error 2 MB, component styles: 10/20 KB) and failed the production build when exceeded. The Vite build on main ("tsc -b && vite build") has no size check at all, so bundle bloat ships unnoticed.
Proposed Solution
Add a bundle size check to the build (e.g. a small script run after vite build, or a size-limit tool) that fails or warns when the entry bundle or total JS exceeds a defined budget.