关于 vite
vite 是面向 Vite 开发者的技能,涵盖指南、配置、插件、API 和部署等主题。它将问题映射到与官方文档对应的本地示例,包括 Vite 中文站内容。
主要功能
- 01将主题映射到指南示例
- 02涵盖 Vite 配置参考
- 03提供插件选择指引
- 04包含 CLI、HMR 和 JavaScript API
- 05涉及 SSR 与部署主题
适用场景
- 01查找 Vite 功能相关指引
- 02查询配置选项
- 03选择 Vite 插件
- 04查看 SSR 或部署指引
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ full-stack-skills/ build-skills --skill vite安装后在 Claude Code 中输入/vite确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
agents/openai.yamlapi/cli.mdconfig.mdplugin-api.mdexamples/config/build-options.mdconfiguring-vite.mddep-optimization-options.mdpreview-options.mdserver-options.mdshared-options.mdssr-options.mdworker-options.mdexamples/guide/api-environment-frameworks.mdapi-environment-instances.mdapi-environment-plugins.mdapi-environment-runtimes.mdapi-environment.mdapi-hmr.mdapi-javascript.mdapi-plugin.mdassets.mdbackend-integration.mdbuild.mdcli.mddep-pre-bundling.mdenv-and-mode.mdfeatures.mdgetting-started.mdmigration.mdperformance.md详细介绍
适用场景
在用户希望进行以下操作时使用此技能:
- 按照 Vite 指南了解从入门到性能优化的主题
- 使用官方配置参考配置 Vite
- 从官方插件页面选择或了解 Vite 插件
- 使用 Vite CLI、HMR API 或 JavaScript API
- 处理 Vite 中的 SSR、后端集成或部署场景
使用方法
- 确定主题,根据用户请求进行判断。
- 打开匹配的指南示例文件,路径为
examples/guide/。 - 如果需要配置,打开匹配的
examples/config/文件。 - 如果需要选择插件,打开
examples/plugins.md。 - 逐字遵循官方文档,并确保输出与所引用的页面一致。
指南映射(一一对应 https://cn.vitejs.dev/guide/)
简介
examples/guide/getting-started.md→ https://cn.vitejs.dev/guide/examples/guide/philosophy.md→ https://cn.vitejs.dev/guide/philosophy.htmlexamples/guide/why-vite.md→ https://cn.vitejs.dev/guide/why.html
指南
examples/guide/features.md→ https://cn.vitejs.dev/guide/features.htmlexamples/guide/cli.md→ https://cn.vitejs.dev/guide/cli.htmlexamples/guide/using-plugins.md→ https://cn.vitejs.dev/guide/using-plugins.htmlexamples/guide/dep-pre-bundling.md→ https://cn.vitejs.dev/guide/dep-pre-bundling.htmlexamples/guide/assets.md→ https://cn.vitejs.dev/guide/assets.htmlexamples/guide/build.md→ https://cn.vitejs.dev/guide/build.htmlexamples/guide/static-deploy.md→ https://cn.vitejs.dev/guide/static-deploy.htmlexamples/guide/env-and-mode.md→ https://cn.vitejs.dev/guide/env-and-mode.htmlexamples/guide/ssr.md→ https://cn.vitejs.dev/guide/ssr.htmlexamples/guide/backend-integration.md→ https://cn.vitejs.dev/guide/backend-integration.htmlexamples/guide/troubleshooting.md→ https://cn.vitejs.dev/guide/troubleshooting.htmlexamples/guide/performance.md→ https://cn.vitejs.dev/guide/performance.htmlexamples/guide/migration.md→ https://cn.vitejs.dev/guide/migration.html
API
examples/guide/api-plugin.md→ https://cn.vitejs.dev/guide/api-plugin.htmlexamples/guide/api-hmr.md→ https://cn.vitejs.dev/guide/api-hmr.htmlexamples/guide/api-javascript.md→ https://cn.vitejs.dev/guide/api-javascript.html
环境 API
examples/guide/api-environment.md→ https://cn.vitejs.dev/guide/api-environment.htmlexamples/guide/api-environment-instances.md→ https://cn.vitejs.dev/guide/api-environment-instances.htmlexamples/guide/api-environment-plugins.md→ https://cn.vitejs.dev/guide/api-environment-plugins.htmlexamples/guide/api-environment-frameworks.md→ https://cn.vitejs.dev/guide/api-environment-frameworks.htmlexamples/guide/api-environment-runtimes.md→ https://cn.vitejs.dev/guide/api-environment-runtimes.html
配置映射(一一对应 https://cn.vitejs.dev/config/)
examples/config/configuring-vite.md→ https://cn.vitejs.dev/config/examples/config/shared-options.md→ https://cn.vitejs.dev/config/shared-options.htmlexamples/config/server-options.md→ https://cn.vitejs.dev/config/server-options.htmlexamples/config/build-options.md→ https://cn.vitejs.dev/config/build-options.htmlexamples/config/preview-options.md→ https://cn.vitejs.dev/config/preview-options.htmlexamples/config/dep-optimization-options.md→ https://cn.vitejs.dev/config/dep-optimization-options.htmlexamples/config/ssr-options.md→ https://cn.vitejs.dev/config/ssr-options.htmlexamples/config/worker-options.md→ https://cn.vitejs.dev/config/worker-options.html
插件映射(一一对应 https://cn.vitejs.dev/plugins/)
examples/plugins.md→ https://cn.vitejs.dev/plugins/
资源
- 指南: https://cn.vitejs.dev/guide/
- 配置: https://cn.vitejs.dev/config/
- 插件: https://cn.vitejs.dev/plugins/
关键词
Vite,构建工具,开发服务器,HMR,配置,插件,SSR,CLI,依赖预打包,资源
评论
支持 Markdown