Rails 5/6: How to include JS functions with webpacker?
For instructions on moving from the old asset pipeline to the new webpacker way of doing things, you can see here: https://www.calleerlandsson.com/replacing-sprockets-with-webpacker-for-javascript-in-rails-5-2/ This is a howto for moving from the asset pipeline to webpacker in Rails 5.2, and it gives you an idea of how things are different in Rails 6 now that webpacker is … Read more