How to import .scss.erb file into Middleman 4?
I just upgraded from Middleman 3 to 4. I think this is my last question ...
I have an all.css.scss file that looks like this:
@charset "utf-8"; @import "settings"; @import "imports"; @import "base"; @import "signature_pad"
All files are imported except for import.
The difference with settings is that it _imports.scss.erb
Then, when I try to load all.css, I get the following:
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
I think the problem is that erb does not process the file before making it .scss.
source share