html-webpack-plugin 5.5.2 → 5.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,12 @@
1
1
  [![npm][npm]][npm-url]
2
2
  [![node][node]][node-url]
3
3
  ![npm](https://img.shields.io/npm/dw/html-webpack-plugin.svg)
4
- [![deps][deps]][deps-url]
5
4
  [![tests][tests]][tests-url]
6
5
  [![Backers on Open Collective](https://opencollective.com/html-webpack-plugin/backers/badge.svg)](#backers)
7
6
  [![Sponsors on Open Collective](https://opencollective.com/html-webpack-plugin/sponsors/badge.svg)](#sponsors)
8
7
 
9
8
  <div align="center">
10
- <img width="200" height="200" src="https://worldvectorlogo.com/logos/html5.svg">
9
+ <img width="200" height="200" src="https://www.w3.org/html/logo/downloads/HTML5_Badge.svg">
11
10
  <a href="https://github.com/webpack/webpack">
12
11
  <img width="200" height="200"
13
12
  src="https://webpack.js.org/assets/icon-square-big.svg">
@@ -90,6 +89,8 @@ The `html-webpack-plugin` provides [hooks](https://github.com/jantimon/html-webp
90
89
  * [html-webpack-skip-assets-plugin](https://github.com/swimmadude66/html-webpack-skip-assets-plugin) Skip adding certain output files to the html file. Built as a drop-in replacement for [html-webpack-exclude-assets-plugin](https://www.npmjs.com/package/html-webpack-exclude-assets-plugin) and works with newer [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) versions
91
90
  * [html-webpack-inject-preload](https://github.com/principalstudio/html-webpack-inject-preload) allows to add preload links &lt;link rel='preload'> anywhere you want.
92
91
  * [inject-body-webpack-plugin](https://github.com/Jaid/inject-body-webpack-plugin) is a simple method of injecting a custom HTML string into the body.
92
+ * [html-webpack-plugin-django](https://github.com/TommasoAmici/html-webpack-plugin-django) a Webpack plugin to inject Django static tags.
93
+ * [js-entry-webpack-plugin](https://github.com/liam61/html-webpack-plugin) creates webpack bundles into your js entry
93
94
 
94
95
 
95
96
  <h2 align="center">Usage</h2>
@@ -155,7 +156,7 @@ Allowed values are as follows:
155
156
  |**`meta`**|`{Object}`|`{}`|Allows to inject `meta`-tags. E.g. `meta: {viewport: 'width=device-width, initial-scale=1, shrink-to-fit=no'}`|
156
157
  |**`base`**|`{Object\|String\|false}`|`false`|Inject a [`base`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base) tag. E.g. `base: "https://example.com/path/page.html`|
157
158
  |**`minify`**|`{Boolean\|Object}`|`true` if `mode` is `'production'`, otherwise `false`|Controls if and in what ways the output should be minified. See [minification](#minification) below for more details.|
158
- |**`hash`**|`{Boolean}`|`false`|If `true` then append a unique `webpack` compilation hash to all included scripts and CSS files. This is useful for cache busting|
159
+ |**`hash`**|`{Boolean}`|`false`|If `true` then append a unique `webpack` compilation hash to all included scripts and CSS files (i.e. `main.js?hash=compilation_hash`). This is useful for cache busting|
159
160
  |**`cache`**|`{Boolean}`|`true`|Emit the file only if it was changed|
160
161
  |**`showErrors`**|`{Boolean}`|`true`|Errors details will be written into the HTML page|
161
162
  |**`chunks`**|`{?}`|`?`|Allows you to add only some chunks (e.g only the unit-test chunk)|
@@ -661,8 +662,5 @@ This project uses the [semistandard code style](https://github.com/Flet/semistan
661
662
  [node]: https://img.shields.io/node/v/html-webpack-plugin.svg
662
663
  [node-url]: https://nodejs.org
663
664
 
664
- [deps]: https://david-dm.org/jantimon/html-webpack-plugin.svg
665
- [deps-url]: https://david-dm.org/jantimon/html-webpack-plugin
666
-
667
665
  [tests]: https://github.com/jantimon/html-webpack-plugin/workflows/CI/badge.svg
668
666
  [tests-url]: https://github.com/jantimon/html-webpack-plugin/actions?query=workflow%3ACI