Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css sass监视多个目录_Css_Shell_Sass_Watch - Fatal编程技术网

Css sass监视多个目录

Css sass监视多个目录,css,shell,sass,watch,Css,Shell,Sass,Watch,在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 --

在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监视多个目录并正确退出?

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

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

查看包含所有项目的文件夹怎么样?sass--style compressed--watch/var/,因为将sass压缩到css的目录在每个路径中都是不同的。我不知道为什么我从未尝试过。非常感谢你!这很好用!看起来不错,尤其是在shell脚本中实现时,当我使用命令替换时(例如,
$(生成文件夹的脚本)
)sass将参数解释为一个
path/to/sass1
和一个
path/to/css1-path/to/sass2:path/to/css2-path/to/sass3:path/to/css3
,从而导致无效的路径异常这是非常古老的。有足够的帮助让sass/less观看。插件与框架等一起出现