npx skills add https://github.com/onmax/nuxt-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 with Oxc/Babel@vitejs/plugin-react-swc - React with SWC@vitejs/plugin-legacy - 旧版浏览器支持vitest 技能(Vite 原生测试)vue 技能获取组件模式tsdown 技能处理 TypeScript 库每周安装量
829
代码仓库
GitHub 星标数
606
首次出现
2026年1月28日
安全审计
安装于
opencode682
github-copilot676
codex663
gemini-cli660
amp599
kimi-cli598
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 supportvitest skill (Vite-native testing)vue skill for component patternstsdown skill for TypeScript libsWeekly Installs
829
Repository
GitHub Stars
606
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode682
github-copilot676
codex663
gemini-cli660
amp599
kimi-cli598
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装