# HG changeset patch
# User Frank Bessou <frank.bessou@logilab.fr>
# Date 1661529241 -7200
#      Fri Aug 26 17:54:01 2022 +0200
# Node ID 25c686be212ff939d5b622956d60a2ac2bed0e3b
# Parent  252781958b9ff5f98e83e3c94b46f1a552a32c55
feat(webpack): remove "minify" option from HTMLWebpackPlugin

These options are already set by default to the same values by HTMLWebpackPlugin:
-  collapseWhitespace
-  keepClosingSlash
-  removeComments
-  removeRedundantAttributes
-  useShortDoctype
-  removeStyleLinkTypeAttributes

The other options shouldn't be necessary since we are relying on loaders and
specific plugins to minify.

diff --git a/{{ cookiecutter.project_slug }}/webpack/webpack.config.js b/{{ cookiecutter.project_slug }}/webpack/webpack.config.js
--- a/{{ cookiecutter.project_slug }}/webpack/webpack.config.js	
+++ b/{{ cookiecutter.project_slug }}/webpack/webpack.config.js	
@@ -163,18 +163,6 @@
       new ESLintPlugin({ formatter: eslintFormatter }),
       new HtmlWebpackPlugin({
         template: paths.index_html,
-        minify: {
-          removeComments: true,
-          collapseWhitespace: true,
-          removeRedundantAttributes: true,
-          useShortDoctype: true,
-          removeEmptyAttributes: true,
-          removeStyleLinkTypeAttributes: true,
-          keepClosingSlash: true,
-          minifyJS: true,
-          minifyCSS: true,
-          minifyURLs: true,
-        },
       }),
       isProduction &&
         new MiniCssExtractPlugin({