Skip to content

Commit

Permalink
remove html-minifier
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Oct 31, 2024
1 parent b6d9c66 commit 8f625e5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 98 deletions.
14 changes: 0 additions & 14 deletions documentation/.eleventy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DateTime } from "luxon";
import CleanCSS from "clean-css";
import UglifyJS from "uglify-es";
import htmlmin from "html-minifier";
import svgContents from "eleventy-plugin-svg-contents";
import embedEverything from "eleventy-plugin-embed-everything";
import eleventyNavigationPlugin from "@11ty/eleventy-navigation";
Expand Down Expand Up @@ -125,19 +124,6 @@ export default function (eleventyConfig) {
return minified.code;
});

// Minify HTML output
eleventyConfig.addTransform("htmlmin", function (content, outputPath) {
if (outputPath.indexOf(".html") > -1) {
let minified = htmlmin.minify(content, {
useShortDoctype: true,
removeComments: true,
collapseWhitespace: true
});
return minified;
}
return content;
});

// Don't process folders with static assets e.g. images
eleventyConfig.addPassthroughCopy("favicon.ico");
eleventyConfig.addPassthroughCopy("images/")
Expand Down
83 changes: 0 additions & 83 deletions documentation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"eleventy-plugin-embed-everything": "^1.18.2",
"eleventy-plugin-svg-contents": "^0.7.0",
"emoji-regex": "^9.2.2",
"html-minifier": "^4.0.0",
"markdown-it-attrs": "^4.1.6",
"markdown-it-center-text": "^1.0.4",
"markdown-it-container": "^3.0.0",
Expand Down

0 comments on commit 8f625e5

Please sign in to comment.