Skip to content

Bump html-webpack-plugin from 4.5.1 to 5.0.0#123

Merged
jb3 merged 3 commits into
mainfrom
dependabot/npm_and_yarn/html-webpack-plugin-5.0.0
Feb 6, 2021
Merged

Bump html-webpack-plugin from 4.5.1 to 5.0.0#123
jb3 merged 3 commits into
mainfrom
dependabot/npm_and_yarn/html-webpack-plugin-5.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Feb 4, 2021

Bumps html-webpack-plugin from 4.5.1 to 5.0.0.

Changelog

Sourced from html-webpack-plugin's changelog.

5.0.0 (2021-02-03)

⚠ BREAKING CHANGES

  • Drop support for webpack 4 and node <= 10 - For older webpack or node versions please use html-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 the scriptLoading 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 the publicPath option to 'auto' to keep the previous behaviour
  • Plugins for html-webpack-plugin which add additional assetTags should provide a meta attribute
  • Drop support for appcache-webpack-plugin

Features

  • drop webpack 4 and node <= 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 the filename 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
Commits
  • 74fae99 chore(release): 5.0.0
  • 94a20df chore: update to webpack 5.20.0
  • c5c8212 feat: add meta attribute for html tags
  • d0ab774 feat: provide public path to the alterAssetTagGroups hook
  • 5200ae6 feat: provide public path to the alterAssetTags hook
  • ccbe93a chore: update examples to latest webpack version
  • 33cbd59 fix: generate html files even if no webpack entry exists
  • 826739f feat: allow to use the latest loader-utils and tapable version
  • 81d7b2c feat: add typings for options and version
  • 8d34b81 fix: use correct casing for webpack type import
  • Additional commits viewable in compare view

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 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 requested a review from jb3 as a code owner February 4, 2021 06:13
jb3 added 2 commits February 6, 2021 22:59
copy-webpack-plugin was creating a build/index.html which html-webpack-plugin then tried to override which caused an error
@jb3 jb3 merged commit 34f40b3 into main Feb 6, 2021
@jb3 jb3 deleted the dependabot/npm_and_yarn/html-webpack-plugin-5.0.0 branch February 6, 2021 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant