Skip to content

Commit

Permalink
Use html-minifer-terser for ES6+ support
Browse files Browse the repository at this point in the history
  • Loading branch information
huksley committed Oct 26, 2020
1 parent 3b7f5a1 commit bf45d55
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 49 deletions.
171 changes: 125 additions & 46 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 @@ -23,7 +23,7 @@
"homepage": "https://github.com/Aircoookie/WLED#readme",
"dependencies": {
"clean-css": "^4.2.3",
"html-minifier": "^4.0.0",
"html-minifier-terser": "^5.1.1",
"inliner": "^1.13.1",
"nodemon": "^2.0.4",
"zlib": "^1.0.5"
Expand Down
4 changes: 2 additions & 2 deletions tools/cdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ${array}
}

const CleanCSS = require("clean-css");
const MinifyHTML = require("html-minifier").minify;
const MinifyHTML = require("html-minifier-terser").minify;

function filter(str, type) {
str = adoptVersionAndRepo(str);
Expand All @@ -119,7 +119,7 @@ function filter(str, type) {
collapseWhitespace: true,
maxLineLength: 80,
minifyCSS: true,
minifyJS: true,
minifyJS: true,
continueOnParseError: false,
removeComments: true,
});
Expand Down

0 comments on commit bf45d55

Please sign in to comment.