vite-plugin-index-html
JSON →Vite plugin that simplifies creation of HTML files as entry points for Vite builds, similar to webpack's html-webpack-plugin. Version 2.0.2 is the latest stable release, with monthly releases. It allows developers to explicitly set script entry files (e.g., ./src/main.ts) without relying on Vite's default index.html parsing. Supports minification via html-minifier-terser, custom templates, and entry signature preservation for Rollup. Unlike Vite's default index.html approach, it provides explicit control over the entry file and output HTML filename, making it suitable for non-library mode builds.
Resources
packagevite-plugin-index-html ↗
API endpoints
full doc /v1/registry/vite-plugin-index-html