vite
PanPanFR/oh-my-openkilo/skills/vite/SKILL.md
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
Skill8 starsChanged 37 days ago
- Reads credentials
What's in it
- Vite
- Preferences
- Core
- Build & SSR
- Advanced
- Quick Reference
- CLI Commands
- Common Config
- Official Plugins
---
name: vite
description: Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
metadata:
author: Anthony Fu
version: "2026.1.31"
source: Generated from https://github.com/vitejs/vite, scripts at https://github.com/antfu/skills
---
# Vite
> Based on Vite 8 beta (Rolldown-powered). Vite 8 uses Rolldown bundler and Oxc transformer.
Vite is a next-generation frontend build tool with fast dev server (native ESM + HMR) and optimized production builds.
## Preferences
- Use TypeScript: prefer `vite.config.ts`
- Always use ESM, avoid CommonJS
## Core
| Topic | Description | Reference |
|-------|-------------|-----------|
| Configuration | `vite.config.ts`, `defineConfig`, conditional configs, `loadEnv` | [core-config](references/core-config.md) |
| Features | `import.meta.glob`, asset queries (`?raw`, `?url`), `import.meta.env`, HMR API | [core-features](references/core-features.md) |
| Plugin API | Vite-specific hooks, virtual modules, plugin ordering | [core-plugin-api](references/core-plugin-api.md) |
## Build & SSR
| Topic | Description | Reference |
|-------|-------------|-----------|
| Build & SSR | Library mode, SSR middleware mode, `ssrLoadModule`, JavaScript API | [build-and-ssr](references/build-and-ssr.md) |
## Advanced
| Topic | Description | Reference |
|-------|-------------|-----------|
| Environment API | Vite 6+ multi-environment support, custom runtimes | [environment-api](references/environment-api.md) |
| Rolldown Migration | Vite 8 changes: Rolldown bundler, Oxc transformer, config migration | [rolldown-migration](references/rolldown-migration.md) |
## Quick Reference
### CLI Commands
```bash
vite # Start dev server
vite build # Production build
vite preview # Preview production build
vite build --ssr # SSR build
```
### Common Config
```ts
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [],
resolve: { alias: { '@': '/src' } },
server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },
build: { target: 'esnext', outDir: 'dist' },
})
```
### Official Plugins
- `@vitejs/plugin-vue` - Vue 3 SFC support
- `@vitejs/plugin-vue-jsx` - Vue 3 JSX
- `@vitejs/plugin-react` - React with Oxc/Babel
- `@vitejs/plugin-react-swc` - React with SWC
- `@vitejs/plugin-legacy` - Legacy browser support
More agent context in PanPanFR/oh-my-openkilo
54 other files this repository gives its agents.
AGENTS.md
Skill
- agentmemory-agentsskills/agentmemory-agents/SKILL.md
- agentmemory-architectureskills/agentmemory-architecture/SKILL.md
- agentmemory-configskills/agentmemory-config/SKILL.md
- agentmemory-hooksskills/agentmemory-hooks/SKILL.md
- agentmemory-mcp-toolsskills/agentmemory-mcp-tools/SKILL.md
- agentmemory-rest-apiskills/agentmemory-rest-api/SKILL.md
- agentmemoryskills/agentmemory/SKILL.md
- antislopskills/antislop/SKILL.md
- caveman-compressskills/caveman-compress/SKILL.md
- caveman-helpskills/caveman-help/SKILL.md
- cavemanskills/caveman/SKILL.md
- caveman-statsskills/caveman-stats/SKILL.md
- clean-codeskills/clean-code/SKILL.md
- cloudflareskills/cloudflare/SKILL.md
- codebase-designskills/codebase-design/SKILL.md
- code-reviewskills/code-review/SKILL.md
- commit-contextskills/commit-context/SKILL.md
- commit-historyskills/commit-history/SKILL.md
- delegationskills/delegation/SKILL.md
- documentationskills/documentation/SKILL.md
- forgetskills/forget/SKILL.md
- git-commitskills/git-commit/SKILL.md
- graphifyskills/graphify/SKILL.md
- grillingskills/grilling/SKILL.md
- handoff-compactskills/handoff-compact/SKILL.md
- handoffskills/handoff/SKILL.md
- i-have-adhdskills/i-have-adhd/SKILL.md
- impeccableskills/impeccable/SKILL.md
- jev-decisionskills/jev-decision/SKILL.md
- lessonskills/lesson/SKILL.md
- memory-disciplineskills/memory-discipline/SKILL.md
- plansskills/plans/SKILL.md
- playwright-cliskills/playwright-cli/SKILL.md
- ponytail-reviewskills/ponytail-review/SKILL.md
- pwa-developmentskills/pwa-development/SKILL.md
- recallskills/recall/SKILL.md
- recapskills/recap/SKILL.md
- rememberskills/remember/SKILL.md
- resolving-merge-conflictsskills/resolving-merge-conflicts/SKILL.md
- session-historyskills/session-history/SKILL.md
- shadcnskills/shadcn/SKILL.md
- systematic-debuggingskills/systematic-debugging/SKILL.md
- test-driven-developmentskills/test-driven-development/SKILL.md
- ui-designskills/ui-design/SKILL.md
- ui-ux-pro-maxskills/ui-ux-pro-max/SKILL.md
- vercel-reactskills/vercel-react/SKILL.md
- verification-before-completionskills/verification-before-completion/SKILL.md
- vitestskills/vitest/SKILL.md
- web-design-guidelinesskills/web-design-guidelines/SKILL.md
- web-perfskills/web-perf/SKILL.md
- write-agentmemory-skillskills/write-agentmemory-skill/SKILL.md
- writing-skillsskills/writing-skills/SKILL.md
Also found in 8 other repositories
The same file, byte for byte, in the weekly crawl of public GitHub.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

