From 93ae2fff9bb963a7afb27c9e081c425b4f610f75 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 15 Jul 2020 11:10:27 -0500 Subject: [PATCH] Don't strip comments from HTML --- webpack/shared.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webpack/shared.js b/webpack/shared.js index ca662d0a4..7f6da74e9 100644 --- a/webpack/shared.js +++ b/webpack/shared.js @@ -72,6 +72,14 @@ module.exports = { chunksSortMode: 'manual', chunks: ['common', 'locale_en', 'application', 'styles'], alwaysWriteToDisk: true, + minify: { + collapseWhitespace: true, + removeComments: false, + removeRedundantAttributes: true, + removeScriptTypeAttributes: true, + removeStyleLinkTypeAttributes: true, + useShortDoctype: true, + }, }), new HtmlWebpackHarddiskPlugin({ outputPath: join(__dirname, '..', 'static'),