Sha256: 38c28f4e9b097eefd6c61e351a15b1676ec5208a450eb5f445be2237da7d235b

Contents?: true

Size: 629 Bytes

Versions: 12

Compression:

Stored size: 629 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[ttf woff2].each do |ext|
            app.config.assets.precompile << "font-awesome/fa-brands-400.#{ext}"
            app.config.assets.precompile << "font-awesome/fa-regular-400.#{ext}"
            app.config.assets.precompile << "font-awesome/fa-solid-900.#{ext}"
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
font-awesome-sass-6.5.2 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.5.1 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.5.0 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.4.2 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.4.0 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.3.0 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.2.1 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.2.0 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.1.2 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.1.1 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.1.0 lib/font_awesome/sass/rails/engine.rb
font-awesome-sass-6.0.0 lib/font_awesome/sass/rails/engine.rb