]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update html-minifier's options.
authorXhmikosR <xhmikosr@gmail.com>
Thu, 14 Jul 2016 08:04:26 +0000 (11:04 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 14 Jul 2016 08:04:26 +0000 (11:04 +0300)
[ci skip]

Gruntfile.js

index 1a597b8893fef38910fb77ea7e5b16d430f3d154..b4541e17b6405f3972734e8353d9f35db0c070e4 100644 (file)
@@ -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',