html-webpack-plugin 4.0.0-beta.10 → 4.0.0-beta.11
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 +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -323,7 +323,7 @@ plugins: [
|
|
|
323
323
|
### Minification
|
|
324
324
|
|
|
325
325
|
If the `minify` option is set to `true` (the default when webpack's `mode` is `'production'`),
|
|
326
|
-
the generated HTML will be minified using [html-minifier](https://github.com/
|
|
326
|
+
the generated HTML will be minified using [html-minifier-terser](https://github.com/DanielRuf/html-minifier-terser)
|
|
327
327
|
and the following options:
|
|
328
328
|
|
|
329
329
|
```js
|
|
@@ -337,7 +337,7 @@ and the following options:
|
|
|
337
337
|
}
|
|
338
338
|
```
|
|
339
339
|
|
|
340
|
-
To use custom [html-minifier options](https://github.com/
|
|
340
|
+
To use custom [html-minifier options](https://github.com/DanielRuf/html-minifier-terser#options-quick-reference)
|
|
341
341
|
pass an object to `minify` instead. This object will not be merged with the defaults above.
|
|
342
342
|
|
|
343
343
|
To disable minification during production mode set the `minify` option to `false`.
|
package/index.js
CHANGED
|
@@ -442,7 +442,7 @@ class HtmlWebpackPlugin {
|
|
|
442
442
|
? this.injectAssetsIntoHtml(html, assets, assetTags)
|
|
443
443
|
: html;
|
|
444
444
|
const htmlAfterMinification = typeof this.options.minify === 'object'
|
|
445
|
-
? require('html-minifier').minify(htmlAfterInjection, this.options.minify)
|
|
445
|
+
? require('html-minifier-terser').minify(htmlAfterInjection, this.options.minify)
|
|
446
446
|
: htmlAfterInjection;
|
|
447
447
|
return Promise.resolve(htmlAfterMinification);
|
|
448
448
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-webpack-plugin",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Simplifies creation of HTML files to serve your webpack bundles",
|
|
6
6
|
"author": "Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)",
|