Skip to content

vite-plugins

vite-plugins is a collection of custom plugins designed to enhance the functionality of the Vite build tool.

Plugin List

  • vite-plugin-combine - 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 - A Vite plugin for copying files/directories, supporting flexible content transformations, directory structure preservation or flattening, and custom file renaming.

  • vite-plugin-external - Excludes specified module dependencies from runtime code and bundled outputs.

  • vite-plugin-hook-use - Displays the sequence and frequency of Vite's hook function invocations.

  • vite-plugin-include-css - Bundles all CSS into a single JavaScript file when cssCodeSplit: false is enabled.

  • vite-plugin-mock-data - Provides a simple way to mock data.

  • vite-plugin-separate-importer - Converts batch imports from a source module into individual file imports from subdirectories of the source module.

  • vite-plugin-view - Dynamically render pages using custom template engines instead of the static .html entry file.