Skip to content

Commit

Permalink
Make sure it adds the javascripts path to the assets path
Browse files Browse the repository at this point in the history
Fix #16
  • Loading branch information
jorgemanrubia committed Dec 19, 2024
1 parent 7840812 commit cdecd67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/hotwire/spark/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class Engine < ::Rails::Engine
html_paths: %w[ app/controllers app/helpers app/models app/views ],
stimulus_paths: %w[ app/javascript/controllers ]

initializer "mission_control-jobs.assets" do |app|
app.config.assets.paths << root.join("app/assets/javascripts")
end

initializer "hotwire_spark.config" do |app|
config.hotwire.spark.each do |key, value|
Hotwire::Spark.send("#{key}=", value)
Expand Down

0 comments on commit cdecd67

Please sign in to comment.