소스 정보
- 저장소
- johnalbertini14-glitch/openclaw-skills
- 최근 소스 활동
- 2026년 2월 12일 07:37
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill vite명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | Vite |
| description | Configure and optimize Vite for development, production builds, and library bundling. |
| metadata | {"clawdbot":{"emoji":"⚡","requires":{"bins":["node"]},"os":["linux","darwin","win32"]}} |
VITE_ prefixed vars are exposed to client code — DB_PASSWORD stays server-side, VITE_API_URL is bundledimport.meta.env.VITE_* not process.env — process.env is Node-only and undefined in browser.env.local overrides .env and is gitignored by default — use for local secretsimport.meta.env.MODE is development or production — use for conditional logic, not NODE_ENVoptimizeDeps.include for pre-bundlingrequire() doesn't work in Vite — use import or createRequire from module for dynamic requiresssr.noExternal or optimizeDeps.exclude and let Vite transform themimport pkg from 'pkg'; const { method } = pkgnode_modules/.vite to force rebuild after package changesoptimizeDeps.include for persistent cachenpm link) aren't pre-bundled — add to optimizeDeps.include explicitlyoptimizeDeps.force: true rebuilds every time — only for debugging, kills dev performancevite.config.ts AND tsconfig.json — Vite uses its own, TypeScript uses tsconfigpath.resolve(__dirname, './src') not relative paths — relative breaks depending on working directory@/ alias is not built-in — must configure manually unlike some frameworks// vite.config.ts
resolve: {
alias: { '@': path.resolve(__dirname, './src') }
}
changeOrigin: true rewrites Host header — required for most APIs that check originws: true — HTTP proxy doesn't forward WS by default/api proxies /api/users, /api/ only proxies /api//usersserver: {
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '')
}
}
}
public/ files served at root, not processed — use for favicons, robots.txt, files that need exact pathssrc/assets/ files are processed, hashed, can be imported — use for images, fonts referenced in codeimport logo from './logo.png' — hardcoded paths break after buildnew URL('./img.png', import.meta.url) for dynamic paths — template literals with variables don't workbuild.rollupOptions.output.manualChunks for code splitting — without it, one giant bundlerollup-plugin-visualizer — find unexpected large dependenciesbuild.target defaults to modern browsers — set 'es2015' for legacy support, but increases bundle sizebuild.cssCodeSplit: true (default) — each async chunk gets its own CSS filebuild.lib for npm packages — different config from app modeexternal for peer dependencies — don't bundle React/Vue into your librarytsc — Vite doesn't emit .d.ts filesformats: ['es', 'cjs'] — some consumers still need require()import.meta.hot.accept()server.hmr.overlay: false hides error overlay — useful for custom error handling but hides issuesssr.external for Node-only packages — prevents bundling node_modules in SSR buildssr.noExternal forces bundling — needed for packages with browser-specific imports?inline suffix or configure css.postcss for SSR