Revert changes
This commit is contained in:
parent
3fe0ccd934
commit
d2310fc2ea
@ -116,14 +116,6 @@ function writeHtmlGzipped(sourceFile, resultFile, page) {
|
|||||||
html = filter(html, "html-minify-ui");
|
html = filter(html, "html-minify-ui");
|
||||||
console.info("Minified to " + html.length + " characters");
|
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) {
|
if (error) {
|
||||||
console.warn(error);
|
console.warn(error);
|
||||||
throw error;
|
throw error;
|
||||||
|
Loading…
Reference in New Issue
Block a user