Skip to content

Commit

Permalink
need importmap cache_sweeper to pick up changes without restart in de…
Browse files Browse the repository at this point in the history
…v mode
  • Loading branch information
jrochkind committed Oct 23, 2024
1 parent f7d4ca1 commit 8a1424e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/blacklight_range_limit/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class Engine < Rails::Engine
initializer "blacklight_range_limit.importmap", before: "importmap" do |app|
if BlacklightRangeLimit.config.using_importmaps
app.config.importmap.paths << Engine.root.join("config/importmap.rb")
app.config.importmap.cache_sweepers << Engine.root.join("app/assets/javascripts/blacklight-range-limit")
end
end

Expand Down

0 comments on commit 8a1424e

Please sign in to comment.