Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

What is the right way in sass to watch multiple directories from a shell script?

I have following in a shell script:

sass --style compressed --watch branches/mysite/assets/css/sass:branches/mysite/assets/css &
sass --style compressed --watch branches/mysite2/themes/css/sass:branches/mysite2/themes/css &
sass --style compressed --watch trunk/assets/css/sass:trunk/assets/css

However, this creates 3 processes and when I hit Ctrl+C to stop, not all processes are exited.

How do I get sass to watch multiple directories and exit correctly?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
717 views
Welcome To Ask or Share your Answers For Others

1 Answer

I'm hoping you've already tried it, but you can just add all folders into one command line:

sass --watch path/to/sass1:path/to/css1 path/to/sass2:path/to/css2 path/to/sass3:path/to/css3

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...