Sha256: 807ca506dcc8825ac2cf3274ca7687534ae8ad26f3275d1a41b4b0f39a44e5e9
Contents?: true
Size: 635 Bytes
Versions: 17
Compression:
Stored size: 635 Bytes
Contents
module Bootstrap module Rails class Engine < ::Rails::Engine initializer 'bootstrap-sass.assets.precompile' do |app| %w(stylesheets javascripts fonts images).each do |sub| app.config.assets.paths << root.join('assets', sub).to_s end # sprockets-rails 3 tracks down the calls to `font_path` and `image_path` # and automatically precompiles the referenced assets. unless Sprockets::Rails::VERSION.split('.', 2)[0].to_i >= 3 app.config.assets.precompile << %r(bootstrap/glyphicons-halflings-regular\.(?:eot|svg|ttf|woff2?)$) end end end end end
Version data entries
17 entries across 17 versions & 3 rubygems