From edbfd7e24db5ff471c05b4291aa5d6f251ee82f8 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 14 Jul 2016 11:04:26 +0300 Subject: [PATCH] Update html-minifier's options. [ci skip] --- Gruntfile.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 1a597b8893..b4541e17b6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -316,13 +316,27 @@ module.exports = function (grunt) { htmlmin: { dist: { options: { + collapseBooleanAttributes: true, collapseWhitespace: true, conservativeCollapse: true, - minifyCSS: true, + decodeEntities: false, + minifyCSS: { + compatibility: "ie8", + keepSpecialComments: 0 + }, minifyJS: true, + minifyURLs: false, processConditionalComments: true, removeAttributeQuotes: true, - removeComments: true + removeComments: true, + removeOptionalAttributes: true, + removeOptionalTags: true, + removeRedundantAttributes: true, + removeScriptTypeAttributes: true, + removeStyleLinkTypeAttributes: true, + removeTagWhitespace: false, + sortAttributes: true, + sortClassName: true }, expand: true, cwd: '_gh_pages',