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, });