Sass/Compass compile into many locations

后端 未结 2 371
走了就别回头了
走了就别回头了 2020-12-10 18:47

I\'m using Sass 3.1.10 with Compass 0.11.5. I need to compile my compass project into many diffrent locations (css_dir) due some structural reasons. Currently I compile all

相关标签:
2条回答
  • 2020-12-10 18:57

    here is a solution with a ruby script https://stackoverflow.com/a/39635064/6440953

    0 讨论(0)
  • 2020-12-10 19:00

    I wrote a simple shell script to compile to 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 params for production. Here you can find many other optional params: http://compass-style.org/help/documentation/configuration-reference/

    0 讨论(0)
提交回复
热议问题