【发布时间】:2014-05-04 03:05:47
【问题描述】:
Sass 应该相对容易设置,我就是这样做的。
奇怪的是我设置了一个文件夹,比如
cd Desktop/sass
然后激活...
sass --watch style.s.css:style.css
一切似乎都很好......
>>> Sass is watching for changes. Press Ctrl-C to stop.
write style.css
[Listen warning]:
Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.
在 style.s.css...save...中运行快速测试...
body{
background-color: #fff;
}
根据教程,它应该“检测”更改(因为它正在监听)并编译它们,同时通过终端通知。但这不会发生。
所以要慢跑它,我 CTRL-C 并再次运行命令...
得到一个错误(在有效的 css 上?)
Sass is watching for changes. Press Ctrl-C to stop.
error style.s.css (Line 2: Invalid CSS after "#fff": expected expression (e.g. 1px, bold), was ";")
[Listen warning]:
Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.
这真是个谜。似乎它几乎不会出错......
这里发生了什么导致它不听并抛出愚蠢的错误?
【问题讨论】: