Sourced from html-webpack-plugin's changelog.
5.1.0 (2021-02-12)
Features
5.0.0 (2021-02-03)
⚠ BREAKING CHANGES
- Drop support for
webpack
4 andnode
<= 10 - For older webpack or node versions please usehtml-webpack-plugin
4.x- Entry javascript resources are now beeing loaded deferred in the
<head>
tag to improve the page load performance by default - You can set thescriptLoading
option to'blocking'
to keep the previous behaviour- Setting publicPath to
''
(an empty string) will no longer calculate a relative path from the html file to the assets anymore - You can set thepublicPath
option to'auto'
to keep the previous behaviour- Plugins for
html-webpack-plugin
which add additional assetTags should provide ameta
attribute- Drop support for
appcache-webpack-plugin
Features
- drop
webpack
4 andnode
<= 10 support to make use of the latest APIs (b7a9e8f)- use the new webpack 5 APIs and create html files during the new
webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS
compilation stage (8964bc4, b6895cb, a97234e, 1b59e09, 4fca596, ed64a6b, 86245db, 50b3bec, c697725)- allow generating one file per chunk with the new
'[name]'
placeholder for thefilename
option (cd5bd2a, 3d9ff48)- the
filename
option can now be a function (c5beb4b)- add support for
'auto'
public paths inside templates (a059fcf, b09b439)- use defer as default script loading mechanism (35b6b87)
- allow to set publicPath to an empty string
''
(5ea7de4)- improve typings (197ddd8)
- provide public path to the alterAssetTagGroups hook (1b54dfb)
- provide public path to the alterAssetTags hook (b754626)
- use
thisCompilation
in child compiler for faster builds (1d59e9a)- export new major in static property (8b692bd)
- reduce dependencies (8c28aaa, 56e633f)
Bug Fixes
- emit files on every build to work properly with plugins like the clean-webpack-plugin (6b3d087)
- generate html files even if no webpack entry exists (2693dfa)
- keep binary format when adding assets (7e2b208), closes #1537
4.5.1 (2021-01-03)
Bug Fixes
- inject javascripts in the tag for inject:true and scriptLoading:'defer' (4f7064e)
4.5.0 (2020-09-21)
... (truncated)
2e30bb1
chore(release): 5.1.0aa6e78d
feat: omit html tag attribute with null/undefined/false value33d69f4
Update scriptLoading's default on README.md74fae99
chore(release): 5.0.094a20df
chore: update to webpack 5.20.0c5c8212
feat: add meta attribute for html tagsd0ab774
feat: provide public path to the alterAssetTagGroups hook5200ae6
feat: provide public path to the alterAssetTags hookccbe93a
chore: update examples to latest webpack version33cbd59
fix: generate html files even if no webpack entry exists