lib/generators/spotlight/install_generator.rb in blacklight-spotlight-3.6.0.beta4 vs lib/generators/spotlight/install_generator.rb in blacklight-spotlight-3.6.0.beta5

- old
+ new

@@ -19,9 +19,12 @@ end def add_manifest append_to_file 'app/assets/javascripts/application.js', "\n//= require_tree .\n" append_to_file 'app/assets/config/manifest.js', "\n//= link spotlight/manifest.js" + + # Rails installed importmap by default, but we don't have importmap + Blacklight 7 working yet. + remove_file 'app/javascript/application.js' end def inject_spotlight_routes route "mount Spotlight::Engine, at: 'spotlight'" gsub_file 'config/routes.rb', /^\s*root.*/ do |match|