Revert changes

This commit is contained in:
Henrik 2023-01-22 21:12:03 +01:00
parent 3fe0ccd934
commit d2310fc2ea

View File

@ -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;