Sha256: c5284d2abdb8d457f678ddbdcfe1fb440adb51b7c16f950354c52bac4d091fac

Contents?: true

Size: 862 Bytes

Versions: 1

Compression:

Stored size: 862 Bytes

Contents

# frozen_string_literal: true

require 'autoprefixer-rails'
begin
  require 'dartsass-rails'
rescue LoadError
  begin
    require 'dartsass-sprockets'
  rescue LoadError
    begin
      require 'sassc-rails'
    rescue LoadError
      begin
        require 'dartsass-rails'
      rescue LoadError
        begin
          require 'cssbundling-rails'
        rescue LoadError
          raise LoadError.new("bootstrap-rubygem requires a Sass engine. Please add dartsass-sprockets, sassc-rails, dartsass-rails or cssbundling-rails to your dependencies.")
        end
      end
    end
  end
end

module Bootstrap
  module Rails
    class Engine < ::Rails::Engine
      initializer 'bootstrap.assets' do |app|
        %w(stylesheets javascripts).each do |sub|
          app.config.assets.paths << root.join('assets', sub).to_s
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap-propshaft-5.3.2.2 lib/bootstrap/engine.rb