From f059dc40f502f7a9436670c078980961bbac7263 Mon Sep 17 00:00:00 2001 From: Sebastian Benz Date: Mon, 22 Jun 2020 21:36:23 +0200 Subject: [PATCH] Fix: MinifyHtml cannot be disabled 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,