Skip to content

Commit 07e6720

Browse files
Added @font-face support
1 parent 93f68c8 commit 07e6720

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/compress.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* Module dependencies.
43
*/
@@ -144,6 +143,17 @@ Compiler.prototype.page = function(node){
144143
+ this.emit('}');
145144
};
146145

146+
/**
147+
* Visit font-face node.
148+
*/
149+
150+
Compiler.prototype.fontface = function(node){
151+
return this.emit('@font-face ')
152+
+ this.emit('{')
153+
+ this.mapVisit(node.declarations)
154+
+ this.emit('}');
155+
};
156+
147157
/**
148158
* Visit rule node.
149159
*/

0 commit comments

Comments
 (0)