重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/teachingai/full-stack-skills --skill vite当用户想要进行以下操作时,请使用此技能:
examples/guide/ 目录下的对应文件。examples/config/ 目录下的对应文件。examples/plugins.md。npm run build 以验证配置更改能否编译;运行 npm run preview 以测试生产环境输出。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
介绍
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.htmlAPI
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.htmlexamples/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.htmlexamples/plugins.md → https://cn.vitejs.dev/plugins/# Create a new Vite project
npm create vite@latest my-app -- --template react-ts
# Install and run
cd my-app && npm install
npm run dev # Dev server with HMR
npm run build # Production build
npm run preview # Preview production build
// vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/api': 'http://localhost:8080',
},
},
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks: { vendor: ['react', 'react-dom'] },
},
},
},
});
defineConfig 以获得 TypeScript 类型提示和自动补全server.proxy 中配置代理以处理开发期间的 API 调用build.rollupOptions.output.manualChunks 进行供应商代码分割import.meta.env 访问环境变量(需以 VITE_ 为前缀)Vite, build tool, dev server, HMR, config, plugins, SSR, CLI, dependency pre-bundling, assets
每周安装次数
55
代码仓库
GitHub 星标数
220
首次出现时间
2026年1月24日
安全审计
已安装于
opencode47
gemini-cli45
codex45
github-copilot42
claude-code38
cursor38
Use this skill whenever the user wants to:
examples/guide/.examples/config/.examples/plugins.md.npm run build to verify config changes compile; npm run preview to test production output.Introduction
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.htmlGuide
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.htmlAPIs
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.htmlEnvironment 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.htmlexamples/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/plugins.md → https://cn.vitejs.dev/plugins/# Create a new Vite project
npm create vite@latest my-app -- --template react-ts
# Install and run
cd my-app && npm install
npm run dev # Dev server with HMR
npm run build # Production build
npm run preview # Preview production build
// vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/api': 'http://localhost:8080',
},
},
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks: { vendor: ['react', 'react-dom'] },
},
},
},
});
defineConfig for TypeScript type hints and autocompleteserver.proxy for API calls during developmentbuild.rollupOptions.output.manualChunks for vendor splittingimport.meta.env for environment variables (prefix with VITE_)Vite, build tool, dev server, HMR, config, plugins, SSR, CLI, dependency pre-bundling, assets
Weekly Installs
55
Repository
GitHub Stars
220
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode47
gemini-cli45
codex45
github-copilot42
claude-code38
cursor38
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
125,600 周安装
examples/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.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