Skip to content

Commit

Permalink
Меняет настройки HTML-минификатора для сохранения только значимых про…
Browse files Browse the repository at this point in the history
…белов
  • Loading branch information
monochromer committed Oct 16, 2024
1 parent 6cf8ad3 commit 2c479ad
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 2c479ad

Please sign in to comment.