vite-patterns
Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.
npx skills add mturac/everything-openai-codex --skill vite-patterns --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Vite Patterns Build tool and dev server patterns for Vite 8+ projects. Covers configuration, environment variables, proxy setup, library mode, dependency pre-bundling, and common production pitfalls. ## When to Use - Configuring `vite.config.ts` or `vite.config.js` - Setting up environment variables or `.env` files - Configuring dev server proxy for API backends - Optimizing build output (chunks, minification, assets) - Publishing libraries with `build.lib` - Troubleshooting dependency pre-bundling or CJS/ESM interop - Debugging HMR, dev server, or build errors - Choosing or ordering Vite plugins ## How It Works - **Dev mode** serves source files as native ESM — no bundling. Transforms happen on-demand per module request, which is why cold starts are fast and HMR is precise. - **Build mode** uses Rolldown (v7+) or Rollup (v5–v6) to bundle the app for production with tree-shaking, code-splitting, and Oxc-based minification. - **Dependency pre-bundling** converts CJS/UMD deps to ESM once via esbuild and caches the result under `node_modules/.vite`, so subsequent starts skip the work. - **Plugins** share a unified interface across dev and build — the same plugin object works for bot
- When to Use
- How It Works
- Examples
- Config Structure
- Plugins
- HMR API
- Environment Variables
- Security
- Server Proxy
- Build Optimization
- Performance
- Library Mode
- SSR Externals
- Dependency Pre-Bundling
What does the vite-patterns skill do?
Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.
How do I install it?
Run `npx skills add mturac/everything-openai-codex --skill vite-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From mturac/everything-openai-codex, a repository with 84 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
