gruntjs / grunt-contrib-compass

Compile Compass to CSS.
http://gruntjs.com/
MIT License
626 stars 128 forks source link

Watching several directories with the `watch` option #229

Closed TxHawks closed 9 years ago

TxHawks commented 9 years ago

Is it possible to watch several directories using the watch configuration option?

My project's has sass files that I wan to watch for changes in the following structure:

 root
|__ bower_components
|  |_[direcotories with sass files]
|__ sass
|  |_[direcotories with sass files]

And sass partials are @imported from sub directories of bower_component. The sassDir option is pointing to the sass directory, and I am currently polling both directories for changes using grunt-contrib-watch to run the compass task whenever needed. For performance reasons, I'd like to use the watch option in conjunction with grunt-concurrent, but couldn't figure out a way to watch several folders. Is that possible?

sindresorhus commented 9 years ago

This task is just a wrapper for Compass. Any question you have with this plugin is a general question about Compass and better asked on the Compass issue tracker or StackOverflow.