Skip to content
Snippets Groups Projects
Commit 25c686be212f authored by Frank Bessou's avatar Frank Bessou :spider_web:
Browse files

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.
parent 252781958b9f
No related branches found
No related tags found
1 merge request!1Many little improvements
......@@ -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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment