rails / sass-rails

Ruby on Rails stylesheet engine for Sass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@import css file doesn't work anymore

chamnap opened this issue · comments

I'm using the @import statement with pure .css file with version 5.0.4 of sass-rails with 2.3.3 of sprockets-rails. It works pretty well.

However, when i upgrade to 3.0.1 of sprockets-rails, it stops working:

Sass::SyntaxError: File to import not found or unreadable: hello.

I'm not so sure, this is a problem of sprockets-rails or sass-rails.

Thanks.

Can you please provide a sample application that reproduces the error?

I had the same error using version 5.0.0 of sass-rails, when I updated to 5.0.4 it works.

I'm having a possibly related problem using Ruby 2.4.1 and Rails 5.1.0.rc1.

see: rails/rails#28628

Summary: sass @import statements in application.scss appear to be ignored, instead scss files are loaded in alphabetic order.