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