【发布时间】:2015-12-15 13:01:53
【问题描述】:
我正在使用
gulp-sass编译 sass。我有main.scss和grid.scss在同一目录中。main.scss被 gulp watch 监视。grid.scss被导入到main.scss并在保存main.scss时编译没有错误。
问题是当我对@987654328@ 进行更改并保存 gulp-sass 中断并抛出此错误:
events.js:141
throw er; // Unhandled 'error' event
^
Error: src\styles\main.scss
Error: File to import not found or unreadable: grid
Parent style sheet: stdin
on line 1 of stdin
>> @import "grid";
^
at options.error (C:\www\test\node_modules\node-sass\lib\index.js:277:32)
看起来grid.scss 在保存时被视为不存在的文件。有什么解决办法?
提前谢谢你。
【问题讨论】: