vite
仓库创建 2026年1月28日最近提交 1 个月前SkillHot 收录 20 天前
▸ 精选理由
开发与库打包、SSR 场景通用且效率显著提升
这个 Skill 做什么
Vite 下一代前端构建工具,提供快速开发服务器和优化构建。
前端构建与开发服务器的实战指南:解释 Vite 的快速 dev server、HMR、以及生产构建优化,并涵盖 Vite 8(基于 Rolldown)和插件体系。在处理 vite.config.ts、写 Vite 插件、做 SSR 或用 Vite 打包库时用这套知识。习惯上偏好 TypeScript 和 ESM 配置,帮助你跟上 Vite 最新迁移与最佳实践。
▸ 展开 SKILL.md 英文原文
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
5.7k
Stars
314
Forks
19
仓库内 Skill
+173
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/antfu/skills/main/skills/vite/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/antfu/skills/main/skills/vite/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Vite > 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. ## Preferences - Use TypeScript: prefer `vite.config.ts` - Always use ESM, avoid CommonJS ## Core | Topic | Description | Reference | |-------|-------------|-----------| | Configuration | `vite.config.ts`, `defineConfig`, conditional configs, `loadEnv` | [core-config](references/core-config.md) | | Features | `import.meta.glob`, asset queries (`?raw`, `?url`), `import.meta.env`, HMR API | [core-features](references/core-features.md) | | Plugin API | Vite-specific hooks,
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有