hawx / guard-sass

Guard::Sass automatically rebuilds sass files when modified (like sass --watch)
MIT License
88 stars 35 forks source link

Compiling all stylesheets in a directory #24

Closed zakdances closed 12 years ago

zakdances commented 12 years ago

How can I get guard:sass to complie all my scss files in the directory when one of them changes, instead of only that one?

hawx commented 12 years ago

Try something like this in your Guardfile,

guard 'sass' do
  watch /.*\.scss/ do
    Dir['*.scss']
  end
end

Basically anything that is returned by #watch will be rebuilt, so you may need to change what is here to suit your needs.

hawx commented 12 years ago

Just as an aside, is the problem to do with partials? If so how are you naming them?