From 39b4a9034c65f809e05715738c44e893634d89e0 Mon Sep 17 00:00:00 2001 From: Sebastian Benz Date: Mon, 22 Jun 2020 21:50:06 +0200 Subject: [PATCH] Fix: MinifyHtml cannot be disabled (#846) Fixes #845 --- packages/optimizer/lib/transformers/MinifyHtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/optimizer/lib/transformers/MinifyHtml.js b/packages/optimizer/lib/transformers/MinifyHtml.js index 5ff5dd414..f057235f6 100644 --- a/packages/optimizer/lib/transformers/MinifyHtml.js +++ b/packages/optimizer/lib/transformers/MinifyHtml.js @@ -38,7 +38,7 @@ const COMMENT_DEFAULT_IGNORE = /^\s*__[a-bA-Z0-9_-]+__\s*$/; class MinifyHtml { constructor(config) { this.opts = { - minify: !!config.minify || true, + minify: config.minify !== false, minifyAmpScript: true, minifyJSON: true, collapseWhitespace: true,