Build(deps-dev): Bump html-bundler-webpack-plugin from 4.16.0 to 4.18.0
Bumps html-bundler-webpack-plugin from 4.16.0 to 4.18.0.
Release notes
Sourced from html-bundler-webpack-plugin's releases.
v4.17.0
Cumulative Release
v4.6.1
-v4.17.0
Features
- Pick up the
srcset
andsizes
attributes for image preload, #149.- Added integrity attribute for preload tags if integrity option on, #145.
- Added the fixed preload filter:
type PreloadFilter = | RegExp | Array<RegExp> | { includes?: Array<RegExp>; excludes?: Array<RegExp> } | ((asset: { sourceFiles: Array<string>; outputFile: string }) => void | boolean); // <= BRAKING CHANGES compared to v4.14.0 (DEPRECATED)
- Added support for preloading of dynamic imported modules, #138.
- Added support for the
?inline
query to load assets as data URL.- Added support for the
?inline
query by importing SVG file in JS as data URLimport file from './image.svg'; // import according the matched webpack config, defaults as output filename import file from './image.svg?inline'; // import as UTF-8 data URL import file from './image.svg?inline=utf8'; // import as UTF-8 data URL import file from './image.svg?inline=base64'; // import as base64-encoded data URL
- Added the
renderStage
option to define the stage for rendering output HTML in the processAssets Webpack hook.- Added support for handlebars helpers in compile mode.
- Rebuilt all entry point templates by serve/watch, after a partial file is modified.
- Added
minimized
tag in stats output for minimized HTML assets.- Precompile Handlebars templates with sub partials.
Bug Fixes
- Fixed compilation fails if used the integrity option with the publicPath as an external URL.
- Improve error messages inc. error stack if async processes fail.
- Fixed unpredictably Webpack compilation fails after a random number of runs, #143.
- Improve the handling exceptions in the integrity module, #143.
- Fixed output URL for preloaded resources if publicPath is a URL or root path, #141.
- Fixed allow to define the
renderStage
option lower thanPROCESS_ASSETS_STAGE_SUMMARIZE
, #137.- Fixed incorrect output of preload tag if
crossorigin: true
, #139.- Fixed if
as=font
is used in preload and thecrossorigin
is not defined, it will be added automatically, because thecrossorigin
is mandatory forfont
type.- Fixed in TypeScript the
renderStage
option should be optional.- Set default render stage before the stage used in
compression-webpack-plugin
to save completely rendered HTML, #134.- Fixed fail rebuild after changed css file if no html entry defined, #132.
- Resolve webpack alias correctly if it is external URL.
- Fixed if a module build has failed then stop further processing of modules to allow output original error.
- Fixed if template is imported in JS in compile mode and the same template function called with different variables set then variables from previous definition must not be cached. This fix is for all template engines. #128.
- Fixed watching changes in files outer the project directory.
- Fixed missing optional dependencies.
Changelog
Sourced from html-bundler-webpack-plugin's changelog.
4.18.0 release (2025-02-03)
- chore: bump the version for release
- docs: add documentation for the router option
4.18.0-beta.2 (2025-02-03)
- feat: if the
router
option is specified and not disabled, then ensure thata.href
is present in thesources
option- fix: if router is disabled and sources contains attributes matching a route file, then doesn't resolve it
4.18.0-beta.1 (2025-02-03)
- feat: revert improvement of the
sources[].filter()
function introduced in beta.0, it returns a boolean or void only- feat: remove the the
sources[].postprocess()
function, introduced in beta.0- feat: add the experimental
router
plugin option.4.18.0-beta.0 (2025-02-01)
- feat: the loader option
loaderOptions.sources
in now available directly in plugin options.- feat: auto resolve source path in a.href and replaces it with output filename regards the publicPath
- feat: improve the
sources[].filter()
function, it can now return a string to modify the original value- feat: add the
sources[].postprocess()
function, called after resolving output filenames
NOTE:postprocess
works only fora.href
contained any*.html
file- fix: does not resolve an attribute containing a specific link, e.g.
whatsapp://send?abid=1234567890&text=Hello
4.17.0 (2025-01-29)
- feat: pick up the
srcset
andsizes
attributes for image preload, #149
Commits
- See full diff in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts