sass观看多个目录 [英] sass watching multiple directories

查看:117
本文介绍了sass观看多个目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从shell脚本中查看多个目录的正确方法是什么?

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

我在shell脚本中有以下内容:

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


$ b b

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

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

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

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

推荐答案

我希望您已经尝试过,但是您只需将所有文件夹添加到一个命令line:

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

这篇关于sass观看多个目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆