fec-vite-project-standard
Installation
SKILL.md
Vite Project Specifications
Design and review of Vite applications, component libraries, development servers, and build configurations.
Purpose
Standardize Vite configurations, security boundaries, and build performance to avoid common pitfalls of development environments and production builds.
Procedure
-
Identify the project type
- Application projects check
root,base,server.proxy,envPrefix,buildand framework plugins first. - Component library projects check
build.lib, type products, peer dependencies external and export entries first. - Monorepo additional checks for
server.fs.allow, path aliases and package dependency boundaries.
- Application projects check
-
Select plugin
- React gives priority to
@vitejs/plugin-react-swcby default; use@vitejs/plugin-reactonly when the Babel plug-in is required. - The Vue project uses
@vitejs/plugin-vue, and path aliases are given priority tovite-tsconfig-paths. - TypeScript projects must complete type checking via
tsc --noEmit, CI orvite-plugin-checker.
- React gives priority to