Skip to content

Commit

Permalink
Remove application.js after bundle in template
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Jun 27, 2024
1 parent fd3e681 commit 23b25ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/generators/spotlight/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ def add_js_rails6
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
Expand Down
5 changes: 5 additions & 0 deletions template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@
config.active_job.queue_adapter = ENV["RAILS_QUEUE"]&.to_sym || :sidekiq
CONFIG
end

after_bundle do
# Rails installed importmap by default, but we don't have importmap + Blacklight 7 working yet.
remove_file 'app/javascript/application.js'
end

0 comments on commit 23b25ad

Please sign in to comment.