guard / guard-compass

Guard::Compass automatically rebuilds scss|sass files when a modification occurs taking in account your compass configuration.
https://rubygems.org/gems/guard-compass
MIT License
60 stars 11 forks source link

adds watch directory to output #9

Closed glortho closed 10 years ago

glortho commented 12 years ago

Guardfile:

guard 'compass', :configuration_file => 'sass/config.rb' do |config|
  watch '^sass/(.*)\.s[ac]ss'
end

sass/config.rb:

css_dir = "../css"

Run guard and guard-compass tries to compile screen.scss to:

../css/sass/screen.css

compass compile/watch does not do this, and compiles it predictably to:

../css/screen.css

Shouldn't it be honoring the config directive?

LimeBlast commented 11 years ago

I'm very new to Guard (having only just started using it today) and am using the following code (which is mostly the same as yours, just without the |config|) and it works just fine:

guard 'compass', :configuration_file => 'config.rb' do
  watch(%r{.+\.scss$})
end
rymai commented 10 years ago

Hi,

Given your setup, I think css_dir should be simply set to "css".

rymai commented 10 years ago

Closing this due to lack of activity, feel free to re-open if you have new infos.