
React Vite Best Practices
Curated performance rules for React and Vite covering build tuning, code splitting, dev startup, and asset handling.
- skills.sh installs
- 3K
- GitHub stars
- 105
- last updated
- Aug 21, 2026
What it does
- Covers 23 rules across six categories: build optimization, code splitting, development, asset handling, environment config, and bundle analysis
- Includes a recommended
vite.config.tswith manual vendor chunks, modern browser targets, and anoptimizeDepssetup - Provides route-based
React.lazy()splitting withSuspenseboundaries and typedVITE_environment variables - Designed for teams reviewing or optimizing React components built with Vite and tracking bundle size
Install
$ npx -y skills add asyrafhussin/agent-skills --skill react-vite-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React + Vite Best Practices
Comprehensive performance optimization guide for React applications built with Vite. Contains 23 rules across 6 categories for build optimization, code splitting, development performance, asset handling, environment configuration, and bundle analysis.
Metadata
- Version: 2.0.0
- Framework: React + Vite
- Rule Count: 23 rules across 6 categories
- License: MIT
When to Apply
Reference these guidelines when:
- Configuring Vite for React projects
- Implementing code splitting and lazy loading
- Optimizing build output and bundle size
- Setting up development environment and HMR
- Handling images, fonts, SVGs, and static assets
- Managing environment variables across environments
- Analyzing bundle size and dependencies
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Build Optimization | CRITICAL | build- |
| 2 | Code Splitting | CRITICAL | split- |
| 3 | Development | HIGH | dev- |
| 4 | Asset Handling | HIGH | asset- |
| 5 | Environment Config | MEDIUM | env- |
| 6 | Bundle Analysis | MEDIUM | bundle- |
Quick Reference
Details
- Repository
- github.com/asyrafhussin/agent-skills
- Categories
- Frontend & UI Code, Code Review & Quality
More from asyrafhussin/agent-skills
All 14- Laravel Best Practices2.4K
- Laravel Inertia React2.1K
- Clean Code Principles1.9K
- Laravel Database Optimization1.1K
- Typescript React Patterns1.1K
- Laravel Owasp Security1.1K
- Tailwind Best Practices1K
- Api Design Patterns1K
- Testing Best Practices975
- Web Design Guidelines970
- Git Workflow907
- State Management849
- Php Best Practices3.9K
Similar to React Vite Best Practices
More Frontend & UI Code
vitepproenca/dot-skills376 installsPerformance-focused Vite guide with 42 prioritized rules for config, builds, plugins, and HMR.
react-vite-expertquestfortech-investments/claude-code-skills409 installsComplete React and Vite skill covering architecture, code generation, performance tuning, and production configs.
vercel-react-best-practicesvercel-labs/agent-skills905.6K installsPerformance guide of 70 React and Next.js rules, ordered by impact from waterfalls to advanced patterns.
react-optimisepproenca/dot-skills410 installsApplication-level React performance guide covering compiler adoption, bundle splitting, rendering, and Core Web Vitals.
react-patternsjezweb/claude-skills1.3K installsReact 19 performance patterns and composition rules that prioritise waterfalls, bundle size, and re-render prevention.
vite-react-best-practicesclaudiocebpaz/vite-react-best-practices667 installsComprehensive guidelines for building, deploying, and refactoring React 19 and Vite 8 single-page applications.