File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ module.exports = function(content) {
47
47
content = content . join ( "" ) ;
48
48
if ( this . minimize ) {
49
49
content = htmlMinifier . minify ( content , {
50
- removeComment : true ,
50
+ removeComments : true ,
51
51
collapseWhitespace : true ,
52
52
collapseBooleanAttributes : true ,
53
53
removeAttributeQuotes : true ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ describe("loader", function() {
37
37
it ( "should minimize" , function ( ) {
38
38
loader . call ( {
39
39
minimize : true
40
- } , '<h3>#{number} {customer}</h3>\n<p> {title} </p>\n\t<img src="image.png" />' ) . should . be . eql (
40
+ } , '<!-- comment -->< h3>#{number} {customer}</h3>\n<p> {title} </p>\n\t <!-- comment --> <img src="image.png" />' ) . should . be . eql (
41
41
'module.exports = "<h3>#{number} {customer}</h3><p>{title}</p><img src=" + require("./image.png") + ">";'
42
42
) ;
43
43
} ) ;
You can’t perform that action at this time.
0 commit comments