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 df31603
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 @@ -18,6 +18,10 @@ class Engine < ::Rails::Engine
end
end

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

initializer "hotwire_spark.install" do |application|
Hotwire::Spark.install_into application if Hotwire::Spark.enabled?
end
Expand Down

0 comments on commit df31603

Please sign in to comment.