Claude
Skill
vite
Frontend build tool.
Download
dhaupin-vant-models_public_vant_skills_vant-skill-vite-e1e348e.zip · 0 KB
Install
skills CLI
npx skills add https://github.com/dhaupin/vant/tree/main/models/public/vant/skills/vant-skill-vite
Claude Code
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dhaupin-vant@llmmart
Git
git clone https://github.com/dhaupin/vant.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole dhaupin/vant collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
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.
Files (vant)
-
SKILL.md 1.1 KB
--- name: vite description: Frontend build tool. license: MIT metadata: author: vant version: "1.0" --- # Vite > Frontend build tool. --- ## When To Use - Fast dev server - Modern build - SPA bundling --- ## What To Do ### 1. Start ```bash 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 ```javascript // vite.config.js import { defineConfig } from 'vite' export default defineConfig({ plugins: [react()], server: { port: 3000 }, build: { outDir: 'dist' } }) ``` ### 4. Environment ```javascript // .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.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.