vite # Dev server
vite build # Production build
vite preview # Preview build
Reference Files
Task
File
Config file, options, CLI, plugins
config.md
ESM, CSS, assets, env vars, glob import
features.md
Dev server, HMR, workers, performance
dev.md
Production, library mode, SSR, chunking
build.md
JS API, plugin authoring, module graph
advanced.md
Loading Files
Consider loading these reference files based on your task:
references/config.md - if setting up vite.config.ts, configuring plugins, or using CLI
references/features.md - if using ESM, CSS, assets, env vars, or glob imports
references/dev.md - if configuring dev server, HMR, workers, or optimizing performance
references/build.md - if building for production, library mode, SSR, or chunking
references/advanced.md - if writing plugins, using JS API, or working with module graph
DO NOT load all files at once. Load only what's relevant to your current task.
Cross-Skill References
Testing → Use vitest skill (Vite-native testing)
Vue projects → Use vue skill for component patterns
Library bundling → Use tsdown skill for TypeScript libs
1---2name: vite3description: Use when setting up Vite projects - provides dev server, HMR, build configuration, library mode, and plugin authoring patterns4license: MIT5---67# Vite89Next-gen frontend build tool with native ESM dev server and Rolldown-powered builds.1011## When to Use1213- Setting up frontend project build tooling14- Configuring dev server, HMR, proxies15- Building for production (SPA, MPA, library, SSR)16- Writing Vite plugins17- Integrating with backend frameworks1819## Quick Start2021```bash22npm create vite@latest my-app23```2425```ts26// vite.config.ts27import { defineConfig } from 'vite'28import vue from '@vitejs/plugin-vue'2930export default defineConfig({31 plugins: [vue()],32 server: {33 port: 3000,34 },35})36```3738```bash39vite # Dev server40vite build # Production build41vite preview # Preview build42```4344## Reference Files4546| Task | File |47| --------------------------------------- | ------------------------------------- |48| Config file, options, CLI, plugins | [config.md](references/config.md) |49| ESM, CSS, assets, env vars, glob import | [features.md](references/features.md) |50| Dev server, HMR, workers, performance | [dev.md](references/dev.md) |51| Production, library mode, SSR, chunking | [build.md](references/build.md) |52| JS API, plugin authoring, module graph | [advanced.md](references/advanced.md) |5354## Loading Files5556**Consider loading these reference files based on your task:**5758- [ ] [references/config.md](references/config.md) - if setting up vite.config.ts, configuring plugins, or using CLI59- [ ] [references/features.md](references/features.md) - if using ESM, CSS, assets, env vars, or glob imports60- [ ] [references/dev.md](references/dev.md) - if configuring dev server, HMR, workers, or optimizing performance61- [ ] [references/build.md](references/build.md) - if building for production, library mode, SSR, or chunking62- [ ] [references/advanced.md](references/advanced.md) - if writing plugins, using JS API, or working with module graph6364**DO NOT load all files at once.** Load only what's relevant to your current task.6566## Cross-Skill References6768- **Testing** → Use `vitest` skill (Vite-native testing)69- **Vue projects** → Use `vue` skill for component patterns70- **Library bundling** → Use `tsdown` skill for TypeScript libs
Run npx skillmds@latest add onmax/vite in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use when setting up Vite projects - provides dev server, HMR, build configuration, library mode, and plugin authoring patterns It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under MIT.
onmax (@onmax) published this skill. Their other Agent Skills are listed on their SkillMD profile.