Created
April 17, 2014 16:44
-
-
Save SteAllan/10997111 to your computer and use it in GitHub Desktop.
BLESS your Sass files through compass (BLESS will need to be installed through Node first).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just in case the file goes over the IE limit, | |
# split the file into multiple. | |
on_stylesheet_saved do |filename| | |
begin | |
result = system('blessc',filename,'-f') | |
if not result | |
Kernel.exit(false) | |
else | |
puts "Blessed the file, so it will work in older versions of IE." | |
end | |
rescue Exception => e | |
puts "Please install bless.\nsudo npm install -g bless" | |
Kernel.exit(false) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍