Skip to content

Commit aacf134

Browse files
committed
add more compression
1 parent f8a43de commit aacf134

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

22
module.exports = function(node, options){
33
options = options || {};
4-
return node.stylesheet.rules.map(rule(options)).join('\n\n');
4+
return options.compress
5+
? node.stylesheet.rules.map(rule(options)).join('')
6+
: node.stylesheet.rules.map(rule(options)).join('\n\n');
57
};
68

79
function rule(options) {

0 commit comments

Comments
 (0)