From d2310fc2eafd4bd6ab454d58f456ca25e40599a0 Mon Sep 17 00:00:00 2001 From: Henrik Date: Sun, 22 Jan 2023 21:12:03 +0100 Subject: [PATCH] Revert changes --- tools/cdata.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tools/cdata.js b/tools/cdata.js index f001209b..bf5a65e8 100644 --- a/tools/cdata.js +++ b/tools/cdata.js @@ -116,14 +116,6 @@ function writeHtmlGzipped(sourceFile, resultFile, page) { html = filter(html, "html-minify-ui"); console.info("Minified to " + html.length + " characters"); - //Set to true to output minified HTML to filename_minified.htm for testing and validation - //Will end up along side oroginal file - let outPureHTMLFile = false; - if(outPureHTMLFile){ - let testFile = sourceFile.replace(/(\.[^.]+)$/, "_minified$1"); - fs.writeFileSync(testFile,html); - } - if (error) { console.warn(error); throw error;