如何在 Middleman 4 中导入 .scss.erb 文件?
我刚从 Middleman 3 升级到 4。我想这是我的最后一期了...
我有一个all.css.scss
看起来像这样的文件:
@charset "utf-8";
@import "settings";
@import "imports";
@import "base";
@import "signature_pad"
除导入外的所有文件都导入。
不同settings
之处在于它是_imports.scss.erb
然后,当我尝试加载 all.css 时,我得到了这个:
Error: File to import not found or unreadable: imports.
Load paths:
/Users/myMyserId/apps/projectName/source/assets/css
/Users/myUserId/.rvm/gems/ruby-2.0.0-p451/gems/compass-core-1.0.3/stylesheets
Compass::SpriteImporter
/Users/myUserId/apps/projectName/source/assets/css
/Users/myUserId/.rvm/gems/ruby-2.0.0-p451/gems/compass-core-1.0.3/stylesheets
Compass::SpriteImporter
/Users/myUserId/apps/projectName/source/assets/css
/Users/myUserId/.rvm/gems/ruby-2.0.0-p451/gems/compass-core-1.0.3/stylesheets
Compass::SpriteImporter
on line 4 of /Users/myUserId/apps/projectName/source/assets/css/all.css.scss
我认为问题在于 erb 在将文件设为 .scss 之前并未对其进行处理。