sass watching multiple directories

会有一股神秘感。 提交于 2019-11-27 12:18:25

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/10713942/sass-watching-multiple-directories

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!