material_design_lite-sass icon indicating copy to clipboard operation
material_design_lite-sass copied to clipboard

Ruby sass is deprecated - move to sassc gem?

Open notori0us opened this issue 6 years ago • 2 comments

When installing this gem:

Post-install message from sass:

Ruby Sass has reached end-of-life and should no longer be used.

* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install

* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme

* For more details, please refer to the Sass blog:
  https://sass-lang.com/blog/posts/7828841

notori0us avatar Jun 28 '19 17:06 notori0us

Hello, Sorry for the delay.

Regarding Ruby Sass this is a tricky problem, for example even latest Rails 5.2.3 still installing deprecated Ruby Sass gem by default; they started moving to sassc a couple of months ago, but those changes are still in beta. And starting from Rails 6 Webpacker will be default JavaScript compiler and with webpacker there is no need in sass gem at all.

Also original MDL libraby is deprecated since late 2016 and now is completely replaced by Material Components for the web.

Considering all this its probably better to leave material_design_lite-sass as is for those still using it in legacy projects. I'm not against changes, just not really sure how a simple switching to sassc would affect the gem and existing installs since I don't use Rails assets pipeline anymore.

rubysamurai avatar Jun 30 '19 15:06 rubysamurai

After running several tests, it seems that sassc can't compile a few sass files where asset pipeline helpers are used.

rubysamurai avatar Oct 14 '19 20:10 rubysamurai