AGENT SKILL
vite
Vite next-generation frontend build tool with fast HMR and optimized builds. Use when configuring Vite, adding plugins, working with dev server, or building for production.
使用场景前端开发
- License 许可
- MIT
- 最近更新
- 2026-06-24
- Stars
- ★ 67
- Forks
- 24
01 前言 Front Matter
- name
- vite
- metadata
- { "author": "Anthony Fu", "source": "Generated from https://github.com/vitejs/vite, scripts located at https://github.com/antfu/skills", "version": "2026.1.28" }
- description
- Vite next-generation frontend build tool with fast HMR and optimized builds. Use when configuring Vite, adding plugins, working with dev server, or building for production.
02 资源文件 20
- 参考文档GENERATION.md134 B
- 参考文档references/advanced-api.md3.8 KB
- 参考文档references/advanced-backend.md3.3 KB
- 参考文档references/advanced-performance.md2.9 KB
- 参考文档references/advanced-plugin-api.md4.1 KB
- 参考文档references/build-library.md3.0 KB
- 参考文档references/build-production.md3.6 KB
- 参考文档references/build-ssr.md3.5 KB
- 参考文档references/core-cli.md2.9 KB
- 参考文档references/core-config.md3.5 KB
- 参考文档references/core-features.md3.2 KB
- 参考文档references/core-plugins.md2.9 KB
- 参考文档references/features-assets.md2.5 KB
- 参考文档references/features-css.md3.3 KB
- 参考文档references/features-dep-bundling.md2.7 KB
- 参考文档references/features-env.md3.1 KB
- 参考文档references/features-glob-import.md3.0 KB
- 参考文档references/features-hmr.md3.2 KB
- 参考文档references/features-workers.md1.8 KB
- 参考文档skill-report.json102.6 KB
03 SKILL.md 正文
Vite is a modern build tool for frontend development featuring instant server start with native ES modules, lightning-fast HMR, and optimized production builds using Rolldown/Rollup. It supports TypeScript, JSX, CSS pre-processors out of the box and has a rich plugin ecosystem.
The skill is based on Vite 6.x, generated at 2026-01-28.
Core
| Topic | Description | Reference |
|---|---|---|
| Configuration | Config file setup, defineConfig, conditional and async configs | core-config |
| CLI Commands | Dev server, build, preview commands and options | core-cli |
| Core Features | TypeScript, JSX, CSS, HTML processing, JSON handling | core-features |
| Using Plugins | Adding, configuring, and ordering plugins | core-plugins |
Features
| Topic | Description | Reference |
|---|---|---|
| CSS Handling | CSS modules, pre-processors, PostCSS, Lightning CSS | features-css |
| Static Assets | Asset imports, public directory, URL handling | features-assets |
| Glob Import | import.meta.glob, dynamic imports, batch loading | features-glob-import |
| Environment Variables | .env files, modes, import.meta.env constants | features-env |
| HMR API | Hot Module Replacement client API | features-hmr |
| Web Workers | Worker imports and configuration | features-workers |
| Dependency Pre-Bundling | optimizeDeps, caching, monorepo setup | features-dep-bundling |
Build
| Topic | Description | Reference |
|---|---|---|
| Production Build | Build options, browser targets, multi-page apps | build-production |
| Library Mode | Building libraries with proper package exports | build-library |
| SSR | Server-side rendering setup and configuration | build-ssr |
Advanced
| Topic | Description | Reference |
|---|---|---|
| JavaScript API | createServer, build, preview programmatic APIs | advanced-api |
| Plugin API | Creating Vite plugins, hooks, virtual modules | advanced-plugin-api |
| Performance | Optimization tips for dev server and builds | advanced-performance |
| Backend Integration | Integrating Vite with traditional backends | advanced-backend |