mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 18:56:41 +00:00
remove html-minify-ui option
This commit is contained in:
parent
5080059143
commit
73d48c8ac4
@ -122,8 +122,6 @@ async function minify(str, type = "plain") {
|
|||||||
return await minifyHtml('<script>' + str + '</script>', options).replace(/<[\/]*script>/g, '');
|
return await minifyHtml('<script>' + str + '</script>', options).replace(/<[\/]*script>/g, '');
|
||||||
} else if (type == "html-minify") {
|
} else if (type == "html-minify") {
|
||||||
return await minifyHtml(str, options);
|
return await minifyHtml(str, options);
|
||||||
} else if (type == "html-minify-ui") {
|
|
||||||
return await minifyHtml(str, options);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error("Unknown filter: " + type);
|
throw new Error("Unknown filter: " + type);
|
||||||
@ -136,7 +134,7 @@ async function writeHtmlGzipped(sourceFile, resultFile, page) {
|
|||||||
|
|
||||||
html = adoptVersionAndRepo(html);
|
html = adoptVersionAndRepo(html);
|
||||||
console.info("Inlined " + html.length + " characters");
|
console.info("Inlined " + html.length + " characters");
|
||||||
html = await minify(html, "html-minify-ui");
|
html = await minify(html, "html-minify");
|
||||||
console.info("Minified to " + html.length + " characters");
|
console.info("Minified to " + html.length + " characters");
|
||||||
const result = zlib.gzipSync(html, { level: zlib.constants.Z_BEST_COMPRESSION });
|
const result = zlib.gzipSync(html, { level: zlib.constants.Z_BEST_COMPRESSION });
|
||||||
console.info("Compressed " + result.length + " bytes");
|
console.info("Compressed " + result.length + " bytes");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user