Skip to content

.ccs.scss stylesheets not importable #127

@AlexB52

Description

@AlexB52

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
end

Steps 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
middleman

Additional 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions