Skip to content

Instantly share code, notes, and snippets.

@SteAllan
Created April 17, 2014 16:44
Show Gist options
  • Save SteAllan/10997111 to your computer and use it in GitHub Desktop.
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).
# 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
@aritrikdas
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment