Switching our Rails 7 app from sassc to dartsass-sprockets works with bootstrap-rails.
But if we try to switch to dartsass-rails, assets:precompile fails.
If we keep gem sprockets-rails and sprockets:railtie:
LoadError: cannot load such file -- sass (LoadError)
or if we don't load sprockets, of course there's no task assets:precompile:
Don't know how to build task 'assets:precompile' (See the list of available tasks with `rake --tasks`)
I've tried debugging this according to this issue on dartsass-rails, but even with the file app/assets/builds/.keep in place, assets:precompile is not a defined task.
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?
Switching our Rails 7 app from
sassctodartsass-sprocketsworks withbootstrap-rails.But if we try to switch to
dartsass-rails,assets:precompilefails.If we keep gem
sprockets-railsandsprockets:railtie:or if we don't load sprockets, of course there's no task
assets:precompile:I've tried debugging this according to this issue on dartsass-rails, but even with the file
app/assets/builds/.keepin place,assets:precompileis not a defined task.Reading through the code of this gem, it seems that
sprockets-railsis not a dependency. Is there anyone who has gotten this to work with dartsass-rails?