name: vite description: 使用官方指南、配置参考和插件页面的Vite指导。当用户需要Vite设置、配置或插件选择详细信息时使用。 license: 完整条款在LICENSE.txt中
何时使用此技能
当用户想要以下内容时使用此技能:
- 从入门到性能遵循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, 依赖预捆绑, 资产