From 73d48c8ac450a5f9a14e5139fac416507dc6f701 Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 17 Jan 2024 00:04:05 +0100 Subject: [PATCH] remove html-minify-ui option --- tools/cdata.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/cdata.js b/tools/cdata.js index 4159745b5..2d257866c 100644 --- a/tools/cdata.js +++ b/tools/cdata.js @@ -122,8 +122,6 @@ async function minify(str, type = "plain") { return await minifyHtml('', options).replace(/<[\/]*script>/g, ''); } else if (type == "html-minify") { return await minifyHtml(str, options); - } else if (type == "html-minify-ui") { - return await minifyHtml(str, options); } throw new Error("Unknown filter: " + type); @@ -136,7 +134,7 @@ async function writeHtmlGzipped(sourceFile, resultFile, page) { html = adoptVersionAndRepo(html); 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"); const result = zlib.gzipSync(html, { level: zlib.constants.Z_BEST_COMPRESSION }); console.info("Compressed " + result.length + " bytes");