chore: minify more things

This commit is contained in:
Cory Dransfeldt 2023-12-31 12:23:38 -08:00
parent 1439b42637
commit d7b608709f
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -110,11 +110,14 @@ export default async function (eleventyConfig) {
return htmlmin.minify(content, { return htmlmin.minify(content, {
collapseBooleanAttributes: true, collapseBooleanAttributes: true,
collapseWhitespace: true, collapseWhitespace: true,
collapseInlineTagWhitespace: true,
decodeEntities: true, decodeEntities: true,
includeAutoGeneratedTags: false, includeAutoGeneratedTags: false,
minifyCSS: true, minifyCSS: true,
minifyJS: true, minifyJS: true,
minifyURLs: true,
removeComments: true, removeComments: true,
useShortDoctype: true,
processScripts: ['application/ld+json'], // minify JSON-LD scripts processScripts: ['application/ld+json'], // minify JSON-LD scripts
}) })
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "4.0.11", "version": "4.0.12",
"description": "The source for my personal site, blog and portfolio. Built using 11ty and hosted on Netlify.", "description": "The source for my personal site, blog and portfolio. Built using 11ty and hosted on Netlify.",
"type": "module", "type": "module",
"scripts": { "scripts": {