From 931cefe47deef08e61245ed762c98ea20c9cd3b4 Mon Sep 17 00:00:00 2001 From: monochromer Date: Mon, 21 Oct 2024 15:31:20 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BD=D1=8F=D0=B5=D1=82=20=D0=BD?= =?UTF-8?q?=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20HTML-=D0=BC?= =?UTF-8?q?=D0=B8=D0=BD=D0=B8=D1=84=D0=B8=D0=BA=D0=B0=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B0=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=BE=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA?= =?UTF-8?q?=D0=BE=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B8=D0=BC=D1=8B=D1=85=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=D0=BE=D0=B2=20(#375)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eleventy-config/transforms.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eleventy-config/transforms.js b/src/eleventy-config/transforms.js index 4724bb1e..44d4a520 100644 --- a/src/eleventy-config/transforms.js +++ b/src/eleventy-config/transforms.js @@ -233,6 +233,9 @@ export default function(eleventyConfig) { eleventyConfig.addTransform('htmlmin', (content, outputPath) => { if (outputPath && outputPath.endsWith('.html')) { return htmlmin.minify(content, { + collapseWhitespace: true, + collapseInlineTagWhitespace: true, + conservativeCollapse: true, minifyJS: true, minifyCSS: true, });