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
vite-plugins
vite-pluginsis a collection of custom plugins designed to enhance the functionality of the Vite build tool.
Plugin List
vite-plugin-build-chunk (legacy) - Generate additional build artifacts (chunk files in different formats) after Vite's Rollup-based main build.
vite-plugin-combine (legacy) - Combines multiple module files into a single target file. It supports four modes: named exports, default exports, auto exports, and no exports, and automatically generates corresponding import statements based on configuration.
vite-plugin-cp (legacy) - A Vite plugin for copying files/directories, supporting flexible content transformations, directory structure preservation or flattening, and custom file renaming.
vite-plugin-external (legacy) - Excludes specified module dependencies from runtime code and bundled outputs.
vite-plugin-hook-use (legacy) - Displays the sequence and frequency of Vite's hook function invocations (debug / optimize lifecycle).
vite-plugin-include-css (legacy) - Bundles all CSS into a single JavaScript file when
cssCodeSplit: falseis enabled.vite-plugin-mock-data (legacy) - Provides a simple file-route based way to mock HTTP data for the Vite dev server.
vite-plugin-reverse-proxy (legacy) - Serves specific scripts as
text/javascriptMIME type instead of the ES module MIME type.vite-plugin-separate-importer (legacy) - Converts batch imports from a source module into individual file imports from subdirectories of the source module (tree-shake friendly).
vite-plugin-view (legacy) - Dynamically render pages using custom template engines instead of the static
.htmlentry file.