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