lib/font_awesome/sass/rails/engine.rb in font-awesome-sass-4.5.0 vs lib/font_awesome/sass/rails/engine.rb in font-awesome-sass-4.6.1
- old
+ new
@@ -5,10 +5,12 @@
initializer 'font-awesome-sass.assets.precompile', group: :all do |app|
%w(stylesheets fonts).each do |sub|
app.config.assets.paths << root.join('assets', sub).to_s
end
- app.config.assets.precompile << %r(font-awesome/fontawesome-webfont\.(?:eot|svg|ttf|woff|woff2?)$)
+ %w(eot svg ttf woff woff2).each do |ext|
+ app.config.assets.precompile << "font-awesome/fontawesome-webfont.#{ext}"
+ end
end
end
end
end
end