vite-plugin-index-html

JSON →
library 2.0.2 ·javascript
verified Jun 4, 2026

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.