Skip to content

Commit

Permalink
chore(dependencies): remove html-minifier
Browse files Browse the repository at this point in the history
  • Loading branch information
benji6 committed Jul 1, 2024
1 parent 72a51b6 commit add53ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 96 deletions.
8 changes: 3 additions & 5 deletions docsSrc/docs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const dox = require("dox");
const fs = require("fs");
const hljs = require("highlight.js");
const { minify } = require("html-minifier");
const CleanCSS = require("clean-css");

const buildDir = "docs";
Expand Down Expand Up @@ -75,8 +74,7 @@ const page = (children) => `

if (!fs.existsSync(buildDir)) fs.mkdirSync(buildDir);

fs.writeFileSync(
`${buildDir}/index.html`,
minify(page(obj.map(docEntry).join("")), { collapseWhitespace: true }),
);
fs.writeFileSync(`${buildDir}/index.html`, page(obj.map(docEntry).join("")), {
collapseWhitespace: true,
});
fs.writeFileSync(`${buildDir}/index.css`, new CleanCSS({}).minify(css).styles);
96 changes: 6 additions & 90 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
},
"devDependencies": {
"benchmark": "^2.1.0",
"clean-css": "^5.3.3",
"dox": "^1.0.0",
"fun-task": "^1.5.2",
"highlight.js": "^11.4.0",
"html-minifier": "^4.0.0",
"immutable": "^5.0.0-beta.5",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
Expand Down

0 comments on commit add53ac

Please sign in to comment.