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

Removal of sassc dependency

Open marcrohloff opened this issue 2 years ago • 6 comments

Can the sassc dependency be removed?

We are using dartsass and would rather not have this as an explicit dependency

marcrohloff avatar Sep 01 '22 21:09 marcrohloff

AFAIK, this project does not support DartSass and is using sassc/LibSass (C++ one, not Ruby one).

DartSass is very different from LibSass, don't expect this project to work properly with it.

Deele avatar Sep 30 '22 13:09 Deele

I realize that. It would be nice to not have the unneeded dependency since sassc is no longer maintained and it seems to be working fine for us. Changing to a newer version of bootstrap but that is a much bigger project

marcrohloff avatar Sep 30 '22 14:09 marcrohloff

Version 3.4.2 did break support for sassc/libsass by introducing math.div. Everyone will have to upgrade to dartsass/dartsass-sprockets now. Using sassc will not work anymore at all.

jgraichen avatar May 09 '23 08:05 jgraichen

Any update on this? - is there an alternative gem that doesn't use the deprecated sassc?

rgaufman avatar Apr 08 '24 10:04 rgaufman

@rgaufman I can confirm that switching from sassc to dartsass-sprockets works for our Rails 7 app.

But if we try to switch to dartsass-rails, assets:precompile fails.

Reading through the code of this gem, it seems that sprockets-rails is not a dependency. Is there anyone who has gotten this to work with dartsass-rails? (I started a new issue for this in #1247)

nimmolo avatar Apr 27 '24 00:04 nimmolo