www*_*ser 21 css shell sass watch
从shell脚本中查看多个目录的正确方法是什么?
我在shell脚本中有以下内容:
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
Run Code Online (Sandbox Code Playgroud)
但是,这会创建3个进程,当我按Ctrl + C停止时,并不会退出所有进程.
如何让sass观看多个目录并正确退出?
小智 50
我希望你已经尝试过了,但你可以将所有文件夹添加到一个命令行中:
sass --watch path/to/sass1:path/to/css1 path/to/sass2:path/to/css2 path/to/sass3:path/to/css3
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8938 次 |
最近记录: |