Skip to content

Commit 6774c41

Browse files
committed
add omission of comments when compressed
1 parent abf45d3 commit 6774c41

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/media.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
/* some comment */
3+
14
@media screen, projection {
25
html {
36
background: #fffef0;

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Compiler.prototype.visit = function(node){
4949
*/
5050

5151
Compiler.prototype.comment = function(node){
52+
if (this.compress) return '';
5253
return '/*' + node.comment + '*/';
5354
};
5455

0 commit comments

Comments
 (0)