guard/guard-compass

adds watch directory to output

Closed this issue · 3 comments

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?

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

Hi,

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

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