Skip to content

Commit

Permalink
feat: 🎸support @font-face
Browse files Browse the repository at this point in the history
In the `@` `prop` logic, add a check for `@font-face`, as it has different grammar than other `@rule`s. fixes #220
  • Loading branch information
VinSpee authored Jan 22, 2019
1 parent 602d9c3 commit a905b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ exports.create = function (config) {
for (var i = 0; i < postponed.length; i++) {
prop = postponed[i];

if (prop[0] === '@') {
if (prop[0] === "@" && prop !== "@font-face") {
renderer.putAt(selector, decls[prop], prop);
} else {
renderer.put(renderer.selector(selector, prop), decls[prop], atrule);
Expand Down

0 comments on commit a905b54

Please sign in to comment.