← Back to list

vite-dev
by octave-commons
A myth engine
⭐ 1🍴 0📅 Jan 25, 2026
SKILL.md
name: vite-dev description: Vite development server setup, building, hot reload, and plugin configuration license: MIT compatibility: opencode metadata: audience: frontend-developers bundler: vite
What I do
- Set up Vite projects with React and TypeScript
- Configure Vite plugins and optimization options
- Run dev server with hot module replacement
- Build production bundles and analyze output
- Configure proxy settings for backend APIs
- Debug build issues and dependency conflicts
When to use me
Use me when working with Vite-based frontend projects, especially when:
- Setting up new Vite projects or configurations
- Configuring dev server and proxy settings
- Building and optimizing production bundles
- Debugging HMR or build issues
- Adding Vite plugins
Common commands
npm run dev- Start dev server (default port 5173)npm run build- Build for productionnpm run preview- Preview production build locallyvite optimize- Pre-bundle dependenciesvite --debug- Run with debug output
Configuration patterns
server.port- Change dev server portserver.proxy- Proxy backend requests (e.g.,{"/api": "http://localhost:3000"})build.outDir- Output directory (default:dist)plugins- Add plugins (e.g.,@vitejs/plugin-react)
TypeScript integration
- Enable strict mode in tsconfig.json
- Use Vite's
tsconfig.pathssupport - Type-check with
tsc --noEmitbefore building - Import with
.jsextensions (Vite transpiles)
Environment variables
- Load from
.env,.env.local,.env.production - Access via
import.meta.env.VARIABLE_NAME - Prefix with
VITE_for client-side variables
Performance tips
- Lazy load routes and components
- Use dynamic imports for code splitting
- Configure
build.chunkSizeWarningLimitfor large bundles - Analyze bundle size with
rollup-plugin-visualizer
HMR troubleshooting
- Check console for HMR connection errors
- Verify
vite.config.tsexports default config - Ensure file watchers work (increase limit on Linux)
- Restart dev server if HMR fails repeatedly
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon