build: 👷 add HTML minifying plugin

This commit is contained in:
Sebin Nyshkim 2025-05-18 22:11:48 +02:00
parent d2a9ec7936
commit 6f0f70dd96
3 changed files with 101 additions and 1 deletions

View file

@ -13,6 +13,7 @@ import eleventyPluginReadingTime from '@myxotod/eleventy-plugin-readingtime';
import eleventyPluginRobotsTxt from 'eleventy-plugin-robotstxt';
import eleventyPluginRss from '@11ty/eleventy-plugin-rss';
import eleventyPluginSyntaxHighlight from '@11ty/eleventy-plugin-syntaxhighlight';
import eleventyPluginTinyHtml from '@sardine/eleventy-plugin-tinyhtml';
import markdownIt from 'markdown-it';
import markdownItAbbr from 'markdown-it-abbr';
import markdownItAnchor from 'markdown-it-anchor';
@ -125,6 +126,7 @@ export default async function (eleventyConfig) {
}
});
eleventyConfig.addPlugin(eleventyPluginRss);
eleventyConfig.addPlugin(eleventyPluginTinyHtml);
eleventyConfig.setLibrary('md', markdownIt(MARKDOWNIT_OPTIONS));