robfletcher / gradle-compass

A SASS / Compass plugin for Gradle
Apache License 2.0
59 stars 39 forks source link

Compile 2 SASS directories #10

Closed EmmanuelDemey closed 5 years ago

EmmanuelDemey commented 11 years ago

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

robfletcher commented 11 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

EmmanuelDemey commented 11 years ago

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 ;)

robfletcher commented 11 years ago

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).

EmmanuelDemey commented 11 years ago

:d. Let me know when the update will be pushed ! ;) Thx

phasebash commented 10 years ago

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.

RoelRoel commented 8 years ago

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).

http://stackoverflow.com/q/33285167/2072569

junhopark commented 8 years ago

Same as well. Would be great to be able to build Sass for multiple directories.

EmmanuelDemey commented 7 years ago

any news about this issue ?