Skip to content

Commit edbfd7e

Browse files
committed
Update html-minifier's options.
[ci skip]
1 parent 3e3a266 commit edbfd7e

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

Gruntfile.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,27 @@ module.exports = function (grunt) {
316316
htmlmin: {
317317
dist: {
318318
options: {
319+
collapseBooleanAttributes: true,
319320
collapseWhitespace: true,
320321
conservativeCollapse: true,
321-
minifyCSS: true,
322+
decodeEntities: false,
323+
minifyCSS: {
324+
compatibility: "ie8",
325+
keepSpecialComments: 0
326+
},
322327
minifyJS: true,
328+
minifyURLs: false,
323329
processConditionalComments: true,
324330
removeAttributeQuotes: true,
325-
removeComments: true
331+
removeComments: true,
332+
removeOptionalAttributes: true,
333+
removeOptionalTags: true,
334+
removeRedundantAttributes: true,
335+
removeScriptTypeAttributes: true,
336+
removeStyleLinkTypeAttributes: true,
337+
removeTagWhitespace: false,
338+
sortAttributes: true,
339+
sortClassName: true
326340
},
327341
expand: true,
328342
cwd: '_gh_pages',

0 commit comments

Comments
 (0)