Skip to content

Commit b766158

Browse files
committed
fixes typo in removeComments
1 parent c40b7de commit b766158

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = function(content) {
4747
content = content.join("");
4848
if(this.minimize) {
4949
content = htmlMinifier.minify(content, {
50-
removeComment: true,
50+
removeComments: true,
5151
collapseWhitespace: true,
5252
collapseBooleanAttributes: true,
5353
removeAttributeQuotes: true,

test/loaderTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe("loader", function() {
3737
it("should minimize", function() {
3838
loader.call({
3939
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(
4141
'module.exports = "<h3>#{number} {customer}</h3><p>{title}</p><img src=" + require("./image.png") + ">";'
4242
);
4343
});

0 commit comments

Comments
 (0)