Search code examples
rubywindowssasscompass-sass

How to make Compass to watch several folders simultaneously?


I'm using Compass + Sass in order to manage/combine my .css files. So I have the following folder structure:

Root
--Module
----css
----sass
--Module
----css
----sass
--Module
----css
----sass

And here what I'd like to achieve: during development phase I'd like to point compass to my root folder and it should watch for any changes in files located at sass directories (in each Module). Once one of the .sass files changes - appropriate .css file should be generated (for the module changed .sass belongs to) and put into css folder under the same Module.

Is it possible?

My guess I should use config.rb for this purpose, but I'm not sure how to do this properly. Could someone point me to the solution or just describe general idea of how to do it?

EDIT: I'm on Windows environment, so can't use Linux commands (I can install Cygwin, but I'd prefer to avoid it)

Thanks


Solution

  • The only workaround I found is to run several Compass instances - one per module. I bet there could be more elegant solution by adjusting Compass source code, but unfortunately I'm not familiar with Ruby...yet.