rails / sass-rails

Ruby on Rails stylesheet engine for Sass
MIT License
859 stars 333 forks source link

url imports aren't loaded in 6.0 #431

Closed PQALAB closed 5 years ago

PQALAB commented 5 years ago

When I try to load a font asset via an email, I get an error would precompiling in production and in development the font is not loaded at all.

problem url @import 'https://fonts.googleapis.com/icon?family=Material+Icons';

Production error SassC::SyntaxError: Error: @import directive requires a url or quoted path

I can get around it by downgrading to 5.1

rafaelfranca commented 5 years ago

sassc behaves differently from Ruby sass and sass-rails 6 is using sassc. If you found an incompatibility problem please report to sassc-rails https://github.com/sass/sassc-rails#libsass-compatibility-with-ruby-sass.