Most of this is automatically generated by the rake task: `bundle exec rake webpacker:install` Docs: https://github.com/rails/webpacker/tree/5-x-stable