Socket
Socket
Sign inDemoInstall

html-webpack-plugin

Package Overview
Dependencies
106
Maintainers
4
Versions
138
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
14Next

5.2.0

Diff

Changelog

Source

5.2.0 (2021-02-19)

Features

  • improve ssr (73d2a66)
jantimon
published 4.5.2 •

Changelog

Source

4.5.2 (2021-02-18)

Bug Fixes

  • more robust variable value extraction to add support for webpack >= 5.22.0 (1aabaf9)
jantimon
published 5.1.0 •

Changelog

Source

5.1.0 (2021-02-12)

Features

  • omit html tag attribute with null/undefined/false value (aa6e78d), closes #1598
jantimon
published 5.0.0 •

Changelog

Source

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 being 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
jantimon
published 5.0.0-beta.6 •

jantimon
published 5.0.0-beta.5 •

jantimon
published 5.0.0-beta.4 •

jantimon
published 5.0.0-beta.3 •

jantimon
published 4.5.1 •

Changelog

Source

4.5.1 (2021-01-03)

Bug Fixes

  • inject javascripts in the <head> tag for inject:true and scriptLoading:'defer' (4f7064e)
jantimon
published 5.0.0-beta.2 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc