chore(.eleventy): Remove unused code

This commit is contained in:
Tom Hubrecht 2025-02-27 19:46:09 +01:00
parent 0b6c6e9ea8
commit 7ec4e7c2ae
Signed by: thubrecht
SSH key fingerprint: SHA256:CYNvFo44Ar9qCNnWNnvJVhs0QXO9AZjOLlPeWcSij3Q

View file

@ -8,8 +8,6 @@ import { feedPlugin } from "@11ty/eleventy-plugin-rss";
import markdownIt from "markdown-it";
import anchor from "markdown-it-anchor";
import attributes from "markdown-it-attrs";
import { minify } from "terser";
import { extname } from "path";
const headerIconLink = (slug, _, state, idx) => {
const linkTokens = [
@ -93,16 +91,6 @@ export default function (config) {
.use(attributes),
);
// Minify js files
// config.addTransform("min.js", async (content, outputPath) => {
// if (outputPath && extname(outputPath) == ".js") {
// const js = await minify(content, {});
// return js.code;
// }
//
// return content;
// });
return {
dir: {
includes: "_includes",