如何在Middleman 4中导入.scss.erb文件?
我刚从Middleman 3升级到4.我认为这是我的最后一期……
我有一个如下所示的all.css.scss文件:
@charset "utf-8"; @import "settings"; @import "imports"; @import "base"; @import "signature_pad"
除导入外,所有文件都导入.
设置的不同之处在于它是_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之前不处理该文件.