skills/build-skills/vite/SKILL.md
Guidance for Vite using the official Guide, Config Reference, and Plugins pages. Use when the user needs Vite setup, configuration, or plugin selection details.
npx skillsauth add partme-ai/full-stack-skills viteInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.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.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/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 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
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.