SCSS/SASS Multiple Sites in Multiple Directories

2019-01-26 20:57发布

问题:

I'm looking at setting SCSS up on a platform that uses SVN with multiple websites on a team of eight.

Our currently site structure is like this.

REPO > WEBSITE1 > CSS
REPO > WEBSITE2 > CSS
REPO > WEBSITE3 > CSS
REPO > WEBSITE4 > CSS

Is there any way to Make Compass or SASS watch the entire repository (without having to watch / unwatch) each individual website with the config.rb or any other method?

Thanks for your help!

回答1:

#!/bin/bash
for i in repoa repob repoc repod
  do
    compass watch "$i/pathtoyourconfig.rb" &
done