chore: minify more things
This commit is contained in:
parent
1439b42637
commit
d7b608709f
2 changed files with 4 additions and 1 deletions
|
@ -110,11 +110,14 @@ export default async function (eleventyConfig) {
|
|||
return htmlmin.minify(content, {
|
||||
collapseBooleanAttributes: true,
|
||||
collapseWhitespace: true,
|
||||
collapseInlineTagWhitespace: true,
|
||||
decodeEntities: true,
|
||||
includeAutoGeneratedTags: false,
|
||||
minifyCSS: true,
|
||||
minifyJS: true,
|
||||
minifyURLs: true,
|
||||
removeComments: true,
|
||||
useShortDoctype: true,
|
||||
processScripts: ['application/ld+json'], // minify JSON-LD scripts
|
||||
})
|
||||
}
|
||||
|
|
Reference in a new issue