Skip to content

Commit

Permalink
Меняет настройки HTML-минификатора для сохранения только значимых про…
Browse files Browse the repository at this point in the history
…белов (#375)
  • Loading branch information
monochromer authored Oct 21, 2024
1 parent 6cf8ad3 commit 931cefe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/eleventy-config/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 931cefe

Please sign in to comment.