Skip to content

Commit

Permalink
Reload on helpers and JS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillplatonov committed Sep 8, 2021
1 parent 9cf5176 commit 0f91bf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/hotwire/livereload/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class Engine < ::Rails::Engine
options = app.config.hotwire_livereload
options.listen_paths = options.listen_paths.map(&:to_s)
options.listen_paths << Rails.root.join("app/views")
options.listen_paths << Rails.root.join("app/helpers")
if Dir.exist?(Rails.root.join("app/javascript"))
options.listen_paths << Rails.root.join("app/javascript")
end
end

config.after_initialize do |app|
Expand Down

0 comments on commit 0f91bf3

Please sign in to comment.