Sass / Compass compiles to many locations

I am using Sass 3.1.10 with Compass 0.11.5. I need to compile my compass project to many different places (css_dir) due to some structural reasons. I am currently collecting all the files for each path manually. Is there a way to compile in many places at the same time?

my config.rb looks like this:

http_path = "/"

css_dir = "skin/main/css"
#css_dir = "uc/main/css"
#css_dir = "skin/abstract/css"
#css_dir = "skin/ksv/css"

sass_dir = "sass"


images_dir = "images"
javascripts_dir = "javascripts"

output_style = :compressed

preferred_syntax = :sass
+5
source share
2 answers

I wrote a simple shell script to compile with a given path:

echo "* Compiling all CSS"


echo "***** START";
cd /mainworkspace/www/

echo "***** compiling into skin1";
compass compile --time --css-dir=skin1/main/css --output-style compressed --force;

echo "***** compiling into skin2";
compass compile --time --css-dir=skin2/main/css --output-style compressed --force;

echo "***** compiling into uc skin";
compass compile --time --css-dir=uc/main/css --output-style compressed --force;


echo "***** END";

update: added some parameters for production. Here you can find many other optional parameters: http://compass-style.org/help/documentation/configuration-reference/

+3

All Articles