@@ -48,15 +48,15 @@ module.exports = function(content) {
48
48
content = content . join ( "" ) ;
49
49
if ( this . minimize ) {
50
50
content = htmlMinifier . minify ( content , {
51
- removeComments : true ,
52
- collapseWhitespace : true ,
53
- collapseBooleanAttributes : true ,
54
- removeAttributeQuotes : true ,
55
- removeRedundantAttributes : true ,
56
- useShortDoctype : true ,
57
- removeEmptyAttributes : true ,
58
- removeOptionalTags : true
59
- } )
51
+ removeComments : query . removeComments !== false ,
52
+ collapseWhitespace : query . collapseWhitespace !== false ,
53
+ collapseBooleanAttributes : query . collapseBooleanAttributes !== false ,
54
+ removeAttributeQuotes : query . removeAttributeQuotes !== false ,
55
+ removeRedundantAttributes : query . removeRedundantAttributes !== false ,
56
+ useShortDoctype : query . useShortDoctype !== false ,
57
+ removeEmptyAttributes : query . removeEmptyAttributes !== false ,
58
+ removeOptionalTags : query . removeOptionalTags !== false
59
+ } ) ;
60
60
}
61
61
return "module.exports = " + JSON . stringify ( content ) . replace ( / x x x H T M L L I N K x x x [ 0 - 9 \. ] + x x x / g, function ( match ) {
62
62
if ( ! data [ match ] ) return match ;
0 commit comments