Sha256: 0e7d6ae349348f3ab35c52ffcdad791daf66a7195fd09d759d3a2b71113b3677

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module FontAwesome
  module Sass
    module Rails
      class Engine < ::Rails::Engine
        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

          %w[eot svg ttf woff woff2].each do |ext|
            app.config.assets.precompile << "font-awesome/fontawesome-webfont.#{ext}"
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
font-awesome-sass-5.0.6 lib/font_awesome/sass/rails/engine.rb