AGENT SKILL
vite
Frontend build tool.
- License 许可
- MIT
- 所属仓库
- dhaupin/vant
- 最近更新
- 2026-11-13
- Stars
- ★ 16
- Forks
- 1
01 前言 Front Matter
- name
- vite
- license
- MIT
- metadata
- { "author": "vant", "version": "1.0" }
- description
- Frontend build tool.
03 SKILL.md 正文
Vite
Frontend build tool.
When To Use
- Fast dev server
- Modern build
- SPA bundling
What To Do
1. Start
npm create vite@latest my-app -- --template react
cd my-app
npm install
npm run dev
2. Commands
| Command | What |
|---|---|
| dev | Start dev server |
| build | Production build |
| preview | Preview build |
| lint | Run linter |
3. Config
// vite.config.js
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [react()],
server: {
port: 3000
},
build: {
outDir: 'dist'
}
})
4. Environment
// .env
VITE_API_URL=http://localhost:3000
// Usage
import.meta.env.VITE_API_URL
Output
## Vite
| Command | Status |
|---------|--------|
| Dev | [RUNNING] |
| Build | [PASS] |
| Preview | [READY] |
### Bundle Size
- [n]KB
Role: Vite Developer Input: Source Output: Built app
Fast builds.
04 同仓库更多 Skills
yaml
Data serialization.
★ 16
typescript
Typed JavaScript.
★ 16
test-unit
Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.
★ 16
test-snapshot
Capture and compare UI/component snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.
★ 16
test-smoke
Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.
★ 16
test-regression
Verify no new bugs introduced since last release. Run full test suite against changes. Use when checking for regressions or before releases.
★ 16