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: vite-63description: Vite is a next-generation frontend build tool that provides a fast dev server with HMR and optimized production builds4license: MIT5---67# Vite
89Next-gen frontend build tool with native ESM dev server and Rolldown-powered builds.
1011## When to Use
1213- Setting up frontend project build tooling
14- Configuring dev server, HMR, proxies
15- Building for production (SPA, MPA, library, SSR)
16- Writing Vite plugins
17- Integrating with backend frameworks
1819## Quick Start
2021```bash
22npm create vite@latest my-app
23```
2425```ts
26// vite.config.ts
27import { defineConfig } from 'vite'
28import vue from '@vitejs/plugin-vue'
2930export default defineConfig({
31 plugins: [vue()],
32 server: {
33 port: 3000,
34 },
35})
36```
3738```bash
39vite # Dev server
40vite build # Production build
41vite preview # Preview build
42```
4344## Reference Files
4546| 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 Files
5556**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 CLI
59- [ ] [references/features.md](references/features.md) - if using ESM, CSS, assets, env vars, or glob imports
60- [ ] [references/dev.md](references/dev.md) - if configuring dev server, HMR, workers, or optimizing performance
61- [ ] [references/build.md](references/build.md) - if building for production, library mode, SSR, or chunking
62- [ ] [references/advanced.md](references/advanced.md) - if writing plugins, using JS API, or working with module graph
6364**DO NOT load all files at once.** Load only what's relevant to your current task.
6566## Cross-Skill References
6768- **Testing** → Use `vitest` skill (Vite-native testing)
69- **Vue projects** → Use `vue` skill for component patterns
70- **Library bundling** → Use `tsdown` skill for TypeScript libs
Run npx skillmds@latest add majiayu000/vite-6 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.
Vite is a next-generation frontend build tool that provides a fast dev server with HMR and optimized production builds It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. 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.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.