You will need to have guard to contine, so install it now!.
Install the gem with:
gem install guard-sass
Add it to your Gemfile:
gem 'guard-sass'
And finally add a basic setup to your Guardfile with:
guard init sass
A guard extension that allows you to easily rebuild .sass (or .scss) files when changed.
guard 'sass' do
watch(%r{^sass/(.*)})
end
Defaults to writing to 'css/' but this can be changed....
guard 'sass', :output => 'styles' do
watch(%r{^sass/(.*)})
end
You can also specify a :root
option to better mimic your app's directory structure...
guard 'sass', :output => 'public/stylesheets', :root => 'app/assets/stylesheets' do
watch(%r{^app/assets/stylesheets/.+\.s[ac]ss})
end
- snappycode (http://github.com/snappycode)
- sauliusg (http://github.com/sauliusg)