Skip to content

Commit

Permalink
Merge pull request #41 from codergeek121/support-sprockets
Browse files Browse the repository at this point in the history
Add basic sprockets support
  • Loading branch information
jorgemanrubia authored Dec 22, 2024
2 parents 3c68fb2 + 6dd01b8 commit 849f003
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 |application|
application.config.assets.precompile << "hotwire_spark.js"
end

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

0 comments on commit 849f003

Please sign in to comment.