npx skills add https://github.com/antfu/skills --skill vite基于 Vite 8 beta(由 Rolldown 驱动)。Vite 8 使用 Rolldown 打包器和 Oxc 转换器。
Vite 是一款下一代前端构建工具,具备快速的开发服务器(原生 ESM + HMR)和优化的生产构建。
vite.config.ts| 主题 | 描述 | 参考链接 |
|---|---|---|
| 配置 | vite.config.ts、defineConfig、条件配置、loadEnv | core-config |
| 功能特性 | 、资源查询(、)、、HMR API |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
import.meta.glob?raw?urlimport.meta.env| core-features |
| 插件 API | Vite 特定钩子、虚拟模块、插件排序 | core-plugin-api |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 构建与 SSR | 库模式、SSR 中间件模式、ssrLoadModule、JavaScript API | build-and-ssr |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 环境 API | Vite 6+ 多环境支持、自定义运行时 | environment-api |
| Rolldown 迁移 | Vite 8 变更:Rolldown 打包器、Oxc 转换器、配置迁移 | rolldown-migration |
vite # 启动开发服务器
vite build # 生产构建
vite preview # 预览生产构建
vite build --ssr # SSR 构建
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [],
resolve: { alias: { '@': '/src' } },
server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },
build: { target: 'esnext', outDir: 'dist' },
})
@vitejs/plugin-vue - Vue 3 SFC 支持@vitejs/plugin-vue-jsx - Vue 3 JSX@vitejs/plugin-react - React 使用 Oxc/Babel@vitejs/plugin-react-swc - React 使用 SWC@vitejs/plugin-legacy - 旧版浏览器支持每周安装量
8.9K
代码仓库
GitHub 星标数
4.0K
首次出现
2026年1月28日
安全审计
安装于
opencode7.0K
codex6.8K
gemini-cli6.7K
github-copilot6.5K
kimi-cli5.7K
amp5.6K
Based on Vite 8 beta (Rolldown-powered). Vite 8 uses Rolldown bundler and Oxc transformer.
Vite is a next-generation frontend build tool with fast dev server (native ESM + HMR) and optimized production builds.
vite.config.ts| Topic | Description | Reference |
|---|---|---|
| Configuration | vite.config.ts, defineConfig, conditional configs, loadEnv | core-config |
| Features | import.meta.glob, asset queries (?raw, ?url), import.meta.env, HMR API | core-features |
| Plugin API | Vite-specific hooks, virtual modules, plugin ordering | core-plugin-api |
| Topic | Description | Reference |
|---|---|---|
| Build & SSR | Library mode, SSR middleware mode, ssrLoadModule, JavaScript API | build-and-ssr |
| Topic | Description | Reference |
|---|---|---|
| Environment API | Vite 6+ multi-environment support, custom runtimes | environment-api |
| Rolldown Migration | Vite 8 changes: Rolldown bundler, Oxc transformer, config migration | rolldown-migration |
vite # Start dev server
vite build # Production build
vite preview # Preview production build
vite build --ssr # SSR build
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [],
resolve: { alias: { '@': '/src' } },
server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },
build: { target: 'esnext', outDir: 'dist' },
})
@vitejs/plugin-vue - Vue 3 SFC support@vitejs/plugin-vue-jsx - Vue 3 JSX@vitejs/plugin-react - React with Oxc/Babel@vitejs/plugin-react-swc - React with SWC@vitejs/plugin-legacy - Legacy browser supportWeekly Installs
8.9K
Repository
GitHub Stars
4.0K
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode7.0K
codex6.8K
gemini-cli6.7K
github-copilot6.5K
kimi-cli5.7K
amp5.6K
97,400 周安装