Closed EmmanuelDemey closed 5 years ago
You can use importPath
to pick up Sass files from other locations. It works the same as the -I
option for the Compass command-line. Here's an example where 2 different sub-projects pick up some common Sass files: https://github.com/ratpack/ratpack/blob/master/ratpack-site/ratpack-site.gradle#L173
But the SASS files located in the importPath directory will be compiled into the css-dir directory ? I would put the compiled CSS into the importPath folder also. I will try your solution ;)
Ah, I see what you mean. No.
Right now there's no way to do that other than having 2 sub-projects. I would need to make Sass into a sourceset (which is not a bad idea anyway).
:d. Let me know when the update will be pushed ! ;) Thx
Just make two different executions of compileSass. http://www.gradle.org/docs/current/userguide/more_about_tasks.html
That is to say, create a new task for the 2nd dir.
I also would like to build Sass for multiple dirs. I use android productflavors.
I have set compass before I call compileSass, but it always takes the default configuration (sassDir: src\main\sass).
Same as well. Would be great to be able to build Sass for multiple directories.
any news about this issue ?
Hi,
I have just found your plugin, and it works like a charm.
Can we have compile 2 different SASS directories ? for example, I have a components/ and src/main/webapp/css directories. After the compilation, the generated CSS files will be placed in the original folder.
Thanks
Manu