unstale

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 init

@unstale/cli 0.2.9 on npm

html-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.

    4.0.0release notes

  • Node.js 18 or later is supported.

    4.0.0release notes

  • The plugin option property is no longer static; access it through the instance as this.option.

    4.0.0release notes

  • Webpack 5.81 or later is supported.

    4.0.0release notes

Deprecations 2

  • watchFiles.files is deprecated; use watchFiles.includes instead. The files option remains supported.

    4.0.0release notes

  • watchFiles.ignore is deprecated; use watchFiles.excludes instead. The ignore option remains supported.

    4.0.0release notes

New APIs and options 1

  • The plugin now supports multiple webpack configurations.

    4.0.0release notes

Behavior and default changes 1

  • The webpack configuration name is displayed in console output.

    4.0.0release notes

Fixes and other changes 2

  • Fixed an error after adding a new import file in serve/watch mode.

    4.0.0release notes

  • Fixed an error when using integrity in serve/watch mode after changes made by using dynamic import.

    4.0.0release notes

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.

    3.0.0release notes

  • The postprocess callback moves from the synchronous renderManifest hook to the asynchronous processAssets hook.

    3.0.0release notes

New APIs and options 12

  • Adds an afterEmit hook for extending the HTML processing pipeline.

    3.0.0release notes

  • Adds an afterEmit callback option.

    3.0.0release notes

  • Adds a beforeEmit hook for extending the HTML processing pipeline.

    3.0.0release notes

  • Adds a beforeEmit callback option.

    3.0.0release notes

  • Adds a beforePreprocessor hook for extending the HTML processing pipeline.

    3.0.0release notes

  • Adds a beforePreprocessor callback option.

    3.0.0release notes

  • Adds a plugin that generates and injects favicon tags for many devices; using it requires installing favicons.

    3.0.0release notes

  • Adds a filter to preserve selected original script-tag attributes when JavaScript is inlined.

    3.0.0release notes

  • Adds a postprocess hook for extending the HTML processing pipeline.

    3.0.0release notes

  • Adds a preprocessor hook for extending the HTML processing pipeline.

    3.0.0release notes

  • Adds a resolveSource hook for extending the HTML processing pipeline.

    3.0.0release notes

  • Importing a source style file with the url query makes its output CSS filename available in JavaScript, enabling dynamic CSS loading.

    3.0.0release notes