24

sass 中从 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

但是,这会创建 3 个进程,当我按 Ctrl+C 停止时,并非所有进程都退出。

如何让 sass 观看多个目录并正确退出?

4

1 回答 1

59

我希望您已经尝试过,但您可以将所有文件夹添加到一个命令行中:

sass --watch path/to/sass1:path/to/css1 path/to/sass2:path/to/css2 path/to/sass3:path/to/css3
于 2012-09-14T18:28:04.743 回答