I am working on a Compass project and my final css output is huge so it needs to be be blessed .
I am using Codekit to compile my SCSS files, and it has the bless option for the less and sass files but unluckly this option seems to be not available for the compass projects (BTW there is no workaround to fix the problem https://github.com/bdkjones/CodeKit/issues/163)
Is there an alternative way to do that automatically after the compiling process? Is it possible to watch the css file with nodejs and then bless it?
====================================================
UPDATE
I am not using Codekit anymore I use Grunt to build the project assets and it works like a charm.
Well, it seems that using this reference you can simply do something like:
on_stylesheet_saved do |filename|
system('blessc ' + File.basename(filename))
end
after you have installed Bless.
What it does is simply attaching that event after you compile your Compass file :) Enjoy
This works for the regular compile command, but it doesn't work when you watch it. After Bless is completed the watch process ends.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With