Registry / web-framework / vuepress-html-webpack-plugin

vuepress-html-webpack-plugin

JSON →
library3.2.0jsnpmunverified

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-plugin
INSTALL
IMPORT
SIG · VUEPRESS-HTML-WEBP
V
vuepress-html-webpack-plugin
web-frameworkjavascriptv3.2.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HtmlWebpackPlugin
const HtmlWebpackPlugin = require('vuepress-html-webpack-plugin')
import HtmlWebpackPlugin from 'vuepress-html-webpack-plugin'
CommonJS only; no ESM export at this version
HtmlWebpackPlugin
const HtmlWebpackPlugin = require('vuepress-html-webpack-plugin')
const { HtmlWebpackPlugin } = require('vuepress-html-webpack-plugin')
Default export, not named export

Basic webpack configuration with HtmlWebpackPlugin to generate an HTML file.

const HtmlWebpackPlugin = require('vuepress-html-webpack-plugin'); const path = require('path'); module.exports = { entry: 'index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' }, plugins: [ new HtmlWebpackPlugin({ title: 'My App', filename: 'index.html' }) ] };
Debug
Known issues
breakingThis fork locks webpack peer dependency to 1.x-4.x; incompatible with webpack 5.
fix
Use original html-webpack-plugin for webpack 5, or stay on webpack 4.
affects: >=3.2.0
gotchaDirect requires into webpack internals may break if webpack minor/patch version changes unexpectedly.
fix
Pin exact webpack version in your project.
affects: >=2.0.0
Errors
Common errors & fixes
Cannot find module 'html-webpack-plugin'
Wrong package name; should be 'vuepress-html-webpack-plugin' in VuePress context.
fix
Replace require('html-webpack-plugin') with require('vuepress-html-webpack-plugin')
Module not found: Error: Can't resolve 'webpack/lib/...'
Webpack version mismatch, plugin accesses internal webpack modules.
fix
Ensure webpack version matches peer dependency: ^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0
Upgrade
Version history
3.2.0latest on npm
Audit
Dependencies
webpackrequiredpeer dependency; version 1, 2, 3, or 4 required
Agent activity
18 hits · last 30 days
node
14
OpenAI (training)
1
Resources
vuepress-html-webpack-plugin — npm install vuepress-html-webpack-plugin · libregistry