Skip to content

Commit ae20c65

Browse files
committed
fix output of rules with no declarations for Identity compiler
1 parent 693b45e commit ae20c65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/identity.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Compiler.prototype.page = function(node){
155155
Compiler.prototype.rule = function(node){
156156
var indent = this.indent();
157157
var decls = node.declarations;
158+
if (!decls.length) return '';
158159

159160
return node.selectors.map(function(s){ return indent + s }).join(',\n')
160161
+ ' {\n'

0 commit comments

Comments
 (0)