Sha256: 0cf927b4b3406de411ff3b78620b79b94d957c03435b82eaec748bd189759031

Contents?: true

Size: 578 Bytes

Versions: 11

Compression:

Stored size: 578 Bytes

Contents

module Stimulus
  class Engine < ::Rails::Engine
    # If you don't want to precompile Stimulus's assets (e.g., you're using jsbundling),
    # you can do this in an initializer:
    #
    # config.after_initialize do
    #   config.assets.precompile -= Stimulus::Engine::PRECOMPILE_ASSETS
    # end
    PRECOMPILE_ASSETS = %w( stimulus.js stimulus.min.js stimulus.min.js.map ).freeze

    initializer "stimulus.assets" do
      if Rails.application.config.respond_to?(:assets)
        Rails.application.config.assets.precompile += PRECOMPILE_ASSETS
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
stimulus-rails-1.3.4 lib/stimulus/engine.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/stimulus-rails-1.3.3/lib/stimulus/engine.rb
stimulus-rails-1.3.3 lib/stimulus/engine.rb
stimulus-rails-1.3.2 lib/stimulus/engine.rb
stimulus-rails-1.3.1 lib/stimulus/engine.rb
stimulus-rails-1.3.0 lib/stimulus/engine.rb
stimulus-rails-1.2.2 lib/stimulus/engine.rb
stimulus-rails-1.2.1 lib/stimulus/engine.rb
stimulus-rails-1.2.0 lib/stimulus/engine.rb
stimulus-rails-1.1.1 lib/stimulus/engine.rb
stimulus-rails-1.1.0 lib/stimulus/engine.rb