File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -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/kangax /html-minifier )
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/kangax /html-minifier#options-quick-reference )
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 ` .
Original file line number Diff line number Diff line change @@ -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
}
You can’t perform that action at this time.
0 commit comments