vite

Installation
SKILL.md

Vite

Overview

Vite is a next-generation frontend build tool that provides instant dev server start via native ES modules and optimized production builds via Rollup. It supports TypeScript, JSX, CSS preprocessors, and static assets out of the box with zero configuration.

When to use: Single-page apps, multi-page apps, library publishing, SSR applications, monorepo packages, any modern frontend project needing fast dev feedback and optimized builds.

When NOT to use: Legacy browsers requiring ES5 output without transpilation, projects locked to Webpack-specific loaders with no Vite equivalents, non-JavaScript build pipelines.

Quick Reference

Pattern API Key Points
Config file defineConfig({}) Type-safe config with IDE support
Conditional config defineConfig(({ command, mode }) => ({})) Different config per command/mode
Path alias resolve.alias Map @/ to src/
Dev proxy server.proxy Forward API requests to backend
HMR config server.hmr WebSocket host/port/protocol
Related skills
Installs
42
GitHub Stars
11
First Seen
Feb 23, 2026