Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 11, 2025

Bumps html-bundler-webpack-plugin from 2.15.2 to 4.21.1.

Release notes

Sourced from html-bundler-webpack-plugin's releases.

v4.19.1

Cumulative Release v4.19.0 - v4.19.1

🔥 CHANGES (inlining SVG)

  • Inline <img src="icon.svg">:
    • OLD: replaces <img> with <svg> tag
    • NEW: inline SVG as base64-encoded data URL. Use new svg.inline.embed = true option to keep old behavior.
  • Encoding of data URL:
    • OLD: defaults, escaped URL (#% chars only), e.g. data:image/svg+xml,<svg>...</svg>
    • NEW:
      • defaults, base64 encoded, e.g. data:image/svg+xml;base64,iVBO...
      • full escaped URL, e.g. data:image/svg+xml,%3Csvg%20... regards generator.dataUrl.encoding option.

✨ Features

  • Added support the ?inline URL query to force inline an image as dataURL in HTML, JS and CSS. The encoding can be specified using a query value (base64 or escape):

    <img src="./icon.svg?inline"/>        --> src as data URL regards configured encoding, defaults base64
    <img src="./icon.svg?inline=base64"/> --> <img src="data:image/svg+xml;base64,PHN2Zy..."/>
    <img src="./icon.svg?inline=escape"/> --> <img src="data:image/svg+xml,%3Csvg%20...%2F%3E"/>
  • Added support the ?embed URL query to replace <img> with <svg> tag kipping img attributes:

    <img class="icon" src="./icon.svg?embed"/>

    Result:

    <svg class="icon" ...>...</svg>
  • When inlining SVG as a data URL, consider Webpack's generator.dataUrl() and generator.dataUrl.encoding options.

  • Display a warning when used ?embed URL query for SVG files in JS or CSS.

  • New svg plugin option:

    type SvgOptions = {
      enabled?: boolean;
      // RegEx to match SVG files.
      // Defaults `/\.svg/i`.
      test?: RegExp;
      inline?: {
        // Enable inline SVG by replacing <img> with <svg>, only in HTML.
        // Equivalent to query: `?inline=embed` | `?embed`.
        // Defaults `false`.
        embed?: boolean;
        // Data URL encoding, overrides `generator.dataUrl.encoding` option.
        // Equivalent to query: `?inline=base64` | `?inline=escape`.
        // Defaults the `generator.dataUrl.encoding` option, if undefined then `base64`.
        encoding?: 'base64' | false;

... (truncated)

Changelog

Sourced from html-bundler-webpack-plugin's changelog.

4.21.1 (2025-07-21)

  • docs: update base url of documentation pages in readme

4.21.0 (2025-07-02)

  • feat: optimize compilation Handlebars templates into JS-templates including only used helpers and partials, #183
  • feat: removes comments from code defined as a function in JSON data

4.20.10 (2025-07-02)

  • fix: removes comments from code containing RegExp literals, #180

4.20.9 (2025-07-01)

  • fix: prevent build failure when used JS-template with dynamic tag attribute, #178

4.20.8 (2025-07-01)

  • fix: support Handlebars partial name containing dot, #179 e.g: schema.org/rating

4.20.7 (2025-06-30)

  • fix: support Handlebars helpers defined as object methods to prevent build failure, #177

4.20.6 (2025-06-29)

  • fix: built fails when used a template variable in srcset with JS-template, #176
    <img srcset="{{ img }}" />

4.20.5 (2025-06-29)

  • fix: handle mixed preprocessorMode cases consistently, #174

4.20.4 (2025-06-28)

  • fix: template rendering error in serve/watch mode with JS templates, #174 This issue was introduced in v4. In v3 works fine.

4.20.3 (2025-06-27)

  • fix: handlebars preprocessor when a partial is used in both a Handlebars template and a JS template, #174
  • fix: handlebars preprocessor for the compile mode when a partial name contains / char

4.20.2 (2025-04-17)

  • fix: invalid values for route.rewriteIndex option are treated as default value

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies javascript Pull requests that update javascript code labels Sep 11, 2025
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/html-bundler-webpack-plugin-4.21.1 branch from 9f63732 to 81d79df Compare September 11, 2025 10:07
Bumps [html-bundler-webpack-plugin](https://github.com/webdiscus/html-bundler-webpack-plugin) from 2.15.2 to 4.21.1.
- [Release notes](https://github.com/webdiscus/html-bundler-webpack-plugin/releases)
- [Changelog](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webdiscus/html-bundler-webpack-plugin/commits)

---
updated-dependencies:
- dependency-name: html-bundler-webpack-plugin
  dependency-version: 4.21.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/html-bundler-webpack-plugin-4.21.1 branch from 81d79df to 520ae31 Compare September 12, 2025 17:37
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 12, 2025

Looks like html-bundler-webpack-plugin is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Sep 12, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/html-bundler-webpack-plugin-4.21.1 branch September 12, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant