diff --git a/lib/hotwire/spark/engine.rb b/lib/hotwire/spark/engine.rb index 16548ca..d1ea7eb 100644 --- a/lib/hotwire/spark/engine.rb +++ b/lib/hotwire/spark/engine.rb @@ -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