Skip to content

Commit

Permalink
October 2024 updates (#98)
Browse files Browse the repository at this point in the history
- Add October 2024 event
- Update dependencies (Eleventy v3)
- Replace `html-minifier` with `html-minifier-terser`
  • Loading branch information
BrianMitchL authored Oct 24, 2024
1 parent 75ffa79 commit ee478ea
Show file tree
Hide file tree
Showing 4 changed files with 794 additions and 1,004 deletions.
5 changes: 2 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const fs = require("node:fs");
const inclusiveLangPlugin = require("@11ty/eleventy-plugin-inclusive-language");
const cacheBuster = require("@mightyplow/eleventy-plugin-cache-buster");
const pluginSitemap = require("@quasibit/eleventy-plugin-sitemap");
const htmlmin = require("html-minifier");
const { minify: htmlMinify } = require("html-minifier-terser");
const { minify } = require("terser");
const siteSettings = require("./src/globals/site.json");

Expand Down Expand Up @@ -43,7 +42,7 @@ module.exports = function (eleventyConfig) {

eleventyConfig.addTransform("htmlmin", function (content, outputPath) {
if (outputPath && outputPath.endsWith(".html")) {
return htmlmin.minify(content, {
return htmlMinify(content, {
useShortDoctype: true,
removeComments: true,
collapseWhitespace: true,
Expand Down
Loading

0 comments on commit ee478ea

Please sign in to comment.