Skip to content

Commit

Permalink
Merge pull request #52 from WorkBravely/master
Browse files Browse the repository at this point in the history
Load the glyphicons explicitly, without regex to support Sprockets 4
  • Loading branch information
decioferreira authored Jan 12, 2024
2 parents 1ef9d48 + 0766574 commit f65bcdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bootstrap-generators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ class Engine < ::Rails::Engine

app.config.assets.paths << ::Rails.root.join('app', 'assets', 'fonts')

app.config.assets.precompile << /\.(?:svg|eot|woff|woff2|ttf)$/
%w(eot svg ttf woff woff2).each do |ext|
app.config.assets.precompile << "bootstrap/glyphicons-halflings-regular.#{ext}"
end
end
end
end
Expand Down

0 comments on commit f65bcdf

Please sign in to comment.