Vite React-TS Build & Deploy Skill
Guide and implement production build and deployment settings.
Rules / best practices
- •Use:
- •pnpm build (vite build)
- •pnpm preview to validate the production build locally
- •Static hosting:
- •Serve dist/ directory
- •If deploying under a subpath, set base in Vite config.
- •For SPAs, ensure the host is configured for history fallback routing.
Deliverables
- •Commands
- •Relevant config changes (base, assets, etc.)
- •Host-specific notes when requested
Use template.md as the default structure.