Skillshub vite

Vite Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/vite" ~/.claude/skills/comeonoliver-skillshub-vite-d3d771 && rm -rf "$T"
manifest: skills/pproenca/dot-skills/vite/SKILL.md
source content

Vite Best Practices

Comprehensive performance optimization guide for Vite applications. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Configuring Vite for a new project
  • Troubleshooting slow dev server startup
  • Optimizing production bundle size
  • Debugging HMR issues
  • Writing or evaluating Vite plugins
  • Migrating from Webpack or other bundlers

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Dependency Pre-bundlingCRITICAL
deps-
2Plugin PerformanceCRITICAL
plugin-
3Bundle OptimizationCRITICAL
bundle-
4Import ResolutionHIGH
import-
5Build ConfigurationHIGH
build-
6Development ServerMEDIUM-HIGH
dev-
7CSS OptimizationMEDIUM
css-
8Advanced PatternsLOW-MEDIUM
advanced-

Quick Reference

1. Dependency Pre-bundling (CRITICAL)

2. Plugin Performance (CRITICAL)

3. Bundle Optimization (CRITICAL)

4. Import Resolution (HIGH)

5. Build Configuration (HIGH)

6. Development Server (MEDIUM-HIGH)

7. CSS Optimization (MEDIUM)

8. Advanced Patterns (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information