Sha256: 9c8e684d33a620f0e542de6a3c009195811415c354d916054e070d0c26f64a2d
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
module Stimulus class Engine < ::Rails::Engine initializer "stimulus.assets" do if Rails.application.config.respond_to?(:assets) Rails.application.config.assets.precompile += %w( stimulus stimulus-autoloader ) end end initializer "stimulus.importmap" do if Rails.application.config.respond_to?(:importmap) Rails.application.config.importmap.paths.tap do |paths| paths.asset "@hotwired/stimulus", path: "stimulus.js" paths.asset "@hotwired/stimulus-autoloader", path: "stimulus-autoloader.js" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stimulus-rails-0.3.2 | lib/stimulus/engine.rb |