How to use Javascript via Webpacker in Rails 6

Published: April 12, 2019, 3:29 p.m.

Rails 6 defaults to using Webpacker for Javascript instead of the asset pipeline. We'll learn how everything is structured and laid out and see how to add Flatpickr to Rails 6 including both the Javascript and CSS for it.