Skip to content

Commit

Permalink
Support other SASS engines
Browse files Browse the repository at this point in the history
  • Loading branch information
matteeyah authored and glebm committed Jan 11, 2024
1 parent 0532717 commit b667cfb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/bootstrap/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
begin
require 'sassc-rails'
rescue LoadError
raise LoadError.new("bootstrap-rubygem requires a Sass engine. Please add dartsass-sprockets or sassc-rails to your dependencies.")
begin
require 'dartsass-rails'
rescue LoadError
begin
require 'cssbundling-rails'
rescue LoadError
raise LoadError.new("bootstrap-rubygem requires a Sass engine. Please add dartsass-sprockets, sassc-rails, dartsass-rails or cssbundling-rails to your dependencies.")
end
end
end
end

Expand Down

0 comments on commit b667cfb

Please sign in to comment.