cristianferrarig / font-awesome-middleman

Font-Awesome web fonts and stylesheets as a Middleman engine
MIT License
51 stars 16 forks source link

(v4.2) Undefined variable: $fa-enable-utilities #12

Closed ProjectFrank closed 9 years ago

ProjectFrank commented 9 years ago

My font.scss file has only 1 line: @import "font-awesome";

This generates the following error in Middleman: Sass::SyntaxError at / Undefined variable: "$fa-enable-utilities". (in /source/css/font.scss:1)

The problem can be fixed by adding $fa-enable-utilities: true !default; to the beginning of font.scss which sets the variable to true (but you could also set it to false if that's what you need).

This problem occurred after updating middleman font-awesome to 4.2 after pull request from @trenton42 was merged. This problem did not occur in @trenton42 's version.

cristianferrarig commented 9 years ago

Fixed! Thank you @ProjectFrank :D

ProjectFrank commented 9 years ago

:thumbsup:

trenton42 commented 8 years ago

After a year this somehow popped up and bit me again. I added $fa-enable-utilities: true !default; to _variables.scss, but I'm not sure if that is the right way to do it. If it is, I can make a PR.

trenton42 commented 8 years ago

Looking through the update history, it looks like that variable had been removed then re-added, but the default was missing. PR'ed