Updated web script to deal with bugs

This commit is contained in:
Angelos Chalaris
2017-12-21 12:31:47 +02:00
parent 8e6899aad6
commit 71ecbc8cb1
4 changed files with 1155 additions and 381 deletions

View File

@ -89,20 +89,19 @@ try {
// Minify output
output = minify(output, {
collapseBooleanAttributes: true,
collapseWhitespace: true,
decodeEntities: true,
collapseWhitespace: false,
decodeEntities: false,
minifyCSS: true,
minifyJS: true,
html5: false,
keepClosingSlash: true,
processConditionalComments: true,
removeAttributeQuotes: true,
removeAttributeQuotes: false,
removeComments: true,
removeEmptyAttributes: true,
removeOptionalTags: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
removeEmptyAttributes: false,
removeOptionalTags: false,
removeScriptTypeAttributes: false,
removeStyleLinkTypeAttributes: false,
trimCustomFragments: true,
useShortDoctype: true,
});
// Write to the index.html file
fs.writeFileSync(path.join(docsPath,'index.html'), output);