Skip to content

Commit

Permalink
Update non-breaking dependencies
Browse files Browse the repository at this point in the history
Also swap html-minifier for html-minifier-terser
  • Loading branch information
BrianMitchL committed Nov 4, 2024
1 parent d889d7b commit 6f2091a
Show file tree
Hide file tree
Showing 6 changed files with 1,796 additions and 968 deletions.
4 changes: 2 additions & 2 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const markdownItFootnote = require('markdown-it-footnote');
const markdownItTOCDoneRight = require('markdown-it-toc-done-right');
const slugify = require('@sindresorhus/slugify');
const { minify } = require('terser');
const htmlmin = require('html-minifier');
const { minify: htmlMinify } = require('html-minifier-terser');
const octicons = require('@primer/octicons');
const postcss = require('postcss');
const postcssConfig = require('./postcss.config.js');
Expand Down Expand Up @@ -223,7 +223,7 @@ module.exports = function (eleventyConfig) {

eleventyConfig.addTransform('html-minifier', (value, outputPath) => {
if (outputPath && outputPath.includes('.html')) {
return htmlmin.minify(value, {
return htmlMinify(value, {
collapseWhitespace: true,
});
}
Expand Down
Loading

0 comments on commit 6f2091a

Please sign in to comment.