-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Expected behavior and actual behavior
Importing a file with the extension .css.scss does not work. Same goes with .css.scss.erb, .scss.erb and .css.erb
However .scss alone works just fine.
Any combination of .js.coffee.erb extensions works just fine for javascripts
Some could argue that this is not needed and I do not have any use for css.scss.erb.
I thought this issue was part of a bigger one where I tried to access config variables in my javascripts. However that code solved it.
# config.rb
activate :sprockets do |c|
c.expose_middleman_helpers = true
endSteps to reproduce the problem (from a clean middleman installation) or example repo
middleman init test
cd test
echo "gem 'middleman-sprockets'" >> Gemfile
bundle
echo "activate :sprockets" >> config.rb
touch source/stylesheets/_test.css.scss
echo "@import 'test';" >> source/stylesheets/site.css.scss
middlemanAdditional information
- Ruby version: 2.4.0
- Middleman version: 4.2.1
- Middleman Sprockets version: 4.1.0
- OS version: macOS Sierra 10.12.3
Metadata
Metadata
Assignees
Labels
No labels