Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

dsgn1graphics / verve-bootstrap-sass   js

Repository URL to install this package:

Version: 3.3.3 

/ lib / verve-bootstrap-sass / engine.rb

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
        %w(stylesheets javascripts images fonts).each do |sub|
          app.config.assets.paths << root.join('lib','assets',sub).to_s
        end
        app.config.assets.precompile << %r(.+\.(?:png|jpg|jpeg|gif)$)
        app.config.assets.precompile << %r(bootstrap/glyphicons-halflings-regular\.(?:eot|svg|ttf|woff2?)$)
        app.config.assets.precompile << %r(verve/FontAwesome\.(?:otf?)$)
        app.config.assets.precompile << %r(verve/fontawesome-webfont\.(?:ttf|eot|svg|woff|woff2?)$)
      end
    end
  end
end