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.
Vite建構工具配置和生態系統。涵蓋 vite.config.ts 設定、外掛程式創作和熱門外掛程式、開發伺服器設定(代理程式、HMR、HTTPS)、建置最佳化(分塊、tree-shaking、手動分塊、rollupOptions)、發布套件的程式庫模式、SSR 配置、環境變數(.env 處理)、多頁應用程式、CSS 處理(PostCSS、CSS 處理模組、CSS 處理(PostCSS、CSS)模組、 在配置 Vite 專案、編寫 Vite 外掛程式、最佳化建置、設定開發伺服器代理程式、設定 SSR、處理環境變數或排除 Vite 問題時使用。 來源:oakoss/agent-skills。