This is Vite 1.x – 6.x LEGACY documentation archive / 这是 Vite 1.x – 6.x 旧版文档归档
- These pages correspond to old plugin releases: vite-plugin-view ≤ 4.x, vite-plugin-external ≤ 7.x, vite-plugin-build-chunk ≤ 4.x, etc.
- Bundler covered: Rollup + esbuild (the default Vite 6 and below stack). This does NOT apply to Vite 8+ with the new Rolldown bundler; Vite 7/8+ users, go to the current docs immediately.
- Content under this folder is frozen and unmaintained. For any new option / field, check the current docs:
- Latest English docs: /guide/introduction
- 最新中文文档:/zh/guide/introduction
Local Debugging
Installation
Use npm run deps to install project dependencies:
bash
npm run depsScript Commands
The project includes multiple npm scripts for various development and build tasks:
deps: Clean and install dependencies.clean: Clean thenode_modulesdirectory.eslint: Run ESLint for code formatting and linting.build:packages: Parallel build all plugin packages.build:examples: Parallel build all example projects.prepare: Install Husky hooks.docs:dev: Start the project documentation development server.docs:preview: Preview the project documentation.docs:build: Generate the project documentation.
Directory Structure
vite-plugins/
├── examples/ # Example projects
├── packages/ # Plugin packages
│ ├── vite-plugin-combine/
│ ├── vite-plugin-cp/
│ ├── vite-plugin-external/
│ ├── vite-plugin-hook-use/
│ ├── vite-plugin-include-css/
│ ├── vite-plugin-mock-data/
│ ├── vite-plugin-reverse-proxy/
│ └── vite-plugin-separate-importer/
├── package.json # Project configuration file
└── README.md # English READMEExample Projects
The project includes multiple example projects demonstrating how to use these plugins: