Sass手表检测更改,但不编译到CSS [英] Sass watch is detecting changes but not compiling to css
本文介绍了Sass手表检测更改,但不编译到CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行 sass --watch app.sass:app.css
终端显示已检测到更改为sass,但不会编译到css。我使用Bourbon,所有我的.scss和.sass文件通过mixin导入。
When I run sass --watch app.sass:app.css
terminal shows that changes have been detected to sass but won't compile to css. I am using Bourbon so all my .scss and .sass files are imported via mixins.
ex。
>>> Sass is watching for changes. Press Ctrl-C to stop.
>>> Change detected to: css/2-modules/top-nav.scss
推荐答案
确保您使用 _filename.scss
保存的文件已正确导入 mainfile.scss
。如果你没有导入 _filename.scss
它会检测到一个更改,但不能编译。
Make sure the file you are saving with an _filename.scss
has been properly imported into the mainfile.scss
. if you have not imported the _filename.scss
it will detect a change but not compile.
这篇关于Sass手表检测更改,但不编译到CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文