Using this guide, I was still unable to install auto-prefixer using gem with compass:
https://github.com/postcss/autoprefixer#compass
gem install autoprefixer-rails
and add post-compile hook to config.rb:
require 'autoprefixer-rails'
on_stylesheet_saved do |file|
css = File.read(file)
File.open(file, 'w') do |io|
io << AutoprefixerRails.process(css)
end
end
Does it matter what directory I am in when I type 'gem install autoprefixer-rails? Should I be in the directory I call 'compass watch'?
I added the function to config.rb but compass is still not compiling with autoprefixer.
Try this in your config.rb project file:
Worked for me when Koala started acting up for me.