npm / html-bundler-webpack-plugin
html-bundler-webpack-plugin
What changed in html-bundler-webpack-plugin 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-29.
6 breaking2 deprecations13 new APIs and options1 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithtml-bundler-webpack-plugin 410 changes
Breaking changes 4
Use addProcess as a class method on the plugin instance instead of through the static option property.
Node.js 18 or later is supported.
The plugin option property is no longer static; access it through the instance as this.option.
Webpack 5.81 or later is supported.
Deprecations 2
watchFiles.files is deprecated; use watchFiles.includes instead. The files option remains supported.
watchFiles.ignore is deprecated; use watchFiles.excludes instead. The ignore option remains supported.
New APIs and options 1
The plugin now supports multiple webpack configurations.
Behavior and default changes 1
The webpack configuration name is displayed in console output.
Fixes and other changes 2
Fixed an error after adding a new import file in serve/watch mode.
Fixed an error when using integrity in serve/watch mode after changes made by using dynamic import.
html-bundler-webpack-plugin 314 changes
Breaking changes 2
The callback’s TemplateInfo replaces filename and verbose with name and resource, and its return type changes to string | undefined. Returning null or undefined leaves content unchanged for later hooks or callbacks.
The postprocess callback moves from the synchronous renderManifest hook to the asynchronous processAssets hook.
New APIs and options 12
Adds an afterEmit hook for extending the HTML processing pipeline.
Adds an afterEmit callback option.
Adds a beforeEmit hook for extending the HTML processing pipeline.
Adds a beforeEmit callback option.
Adds a beforePreprocessor hook for extending the HTML processing pipeline.
Adds a beforePreprocessor callback option.
Adds a plugin that generates and injects favicon tags for many devices; using it requires installing favicons.
Adds a filter to preserve selected original script-tag attributes when JavaScript is inlined.
Adds a postprocess hook for extending the HTML processing pipeline.
Adds a preprocessor hook for extending the HTML processing pipeline.
Adds a resolveSource hook for extending the HTML processing pipeline.
Importing a source style file with the url query makes its output CSS filename available in JavaScript, enabling dynamic CSS loading.