A fork of html-webpack-plugin specifically for VuePress to avoid version conflicts when users install incompatible webpack versions alongside VuePress' own. Version 3.2.0 is the latest stable release. This plugin simplifies creation of HTML files to serve webpack bundles, especially useful for hashed filenames. Unlike the original, it is locked to specific webpack internals compatibility for VuePress. No frequent updates.
npm install vuepress-html-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Basic webpack configuration with HtmlWebpackPlugin to generate an HTML file.
Use original html-webpack-plugin for webpack 5, or stay on webpack 4.
Pin exact webpack version in your project.
Replace require('html-webpack-plugin') with require('vuepress-html-webpack-plugin')Ensure webpack version matches peer dependency: ^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0