What problem does it solve?
This Skill helps reduce production bundle size, improve runtime performance, and speed up developer iteration for React applications built with Vite by providing targeted, measurable build and configuration changes.
Core Features & Use Cases
- Vite configuration audits: Identify problematic vite.config.* settings and recommend minimal, safe edits.
- Bundle and chunking strategies: Propose manualChunks, vendor splitting, and route/component lazy-loading to shrink initial payloads.
- Dev-loop & HMR fixes: Diagnose optimizeDeps, warmup, and Fast Refresh issues to accelerate cold starts and maintain state during edits.
- Asset and delivery optimizations: Recommend content hashing, pre-compression, source map handling, and prefetching for better caching and delivery.
- Use Case: When a dashboard page loads slowly or HMR causes full reloads, run the skill to produce a prioritized set of config and code changes plus expected impact estimates.
Quick Start
Ask the skill to audit vite.config.ts and the app's route/component imports, then return a minimal change list to reduce bundle size, improve caching, and fix HMR issues.