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: MIT5metadata:6 source: https://skillmd.com/skills/onmax/vite7---89# Vite1011Next-gen frontend build tool with native ESM dev server and Rolldown-powered builds.1213## When to Use1415- Setting up frontend project build tooling16- Configuring dev server, HMR, proxies17- Building for production (SPA, MPA, library, SSR)18- Writing Vite plugins19- Integrating with backend frameworks2021## Quick Start2223```bash24npm create vite@latest my-app25```2627```ts28// vite.config.ts29import { defineConfig } from 'vite'30import vue from '@vitejs/plugin-vue'3132export default defineConfig({33 plugins: [vue()],34 server: {35 port: 3000,36 },37})38```3940```bash41vite # Dev server42vite build # Production build43vite preview # Preview build44```4546## Reference Files4748| Task | File |49| --------------------------------------- | ------------------------------------- |50| Config file, options, CLI, plugins | [config.md](references/config.md) |51| ESM, CSS, assets, env vars, glob import | [features.md](references/features.md) |52| Dev server, HMR, workers, performance | [dev.md](references/dev.md) |53| Production, library mode, SSR, chunking | [build.md](references/build.md) |54| JS API, plugin authoring, module graph | [advanced.md](references/advanced.md) |5556## Loading Files5758**Consider loading these reference files based on your task:**5960- [ ] [references/config.md](references/config.md) - if setting up vite.config.ts, configuring plugins, or using CLI61- [ ] [references/features.md](references/features.md) - if using ESM, CSS, assets, env vars, or glob imports62- [ ] [references/dev.md](references/dev.md) - if configuring dev server, HMR, workers, or optimizing performance63- [ ] [references/build.md](references/build.md) - if building for production, library mode, SSR, or chunking64- [ ] [references/advanced.md](references/advanced.md) - if writing plugins, using JS API, or working with module graph6566**DO NOT load all files at once.** Load only what's relevant to your current task.6768## Cross-Skill References6970- **Testing** → Use `vitest` skill (Vite-native testing)71- **Vue projects** → Use `vue` skill for component patterns72- **Library bundling** → Use `tsdown` skill for TypeScript libs
Run npx get-skill 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, Integrations & APIs 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.
onmax (@onmax) published this skill. Their other Agent Skills are listed on their SkillMD profile.