application.js 746 B

1234567891011121314151617
  1. // This file is automatically compiled by Webpack, along with any other files
  2. // present in this directory. You're encouraged to place your actual application logic in
  3. // a relevant structure within app/javascript and only use these pack files to reference
  4. // that code so it'll be compiled.
  5. require("@rails/ujs").start()
  6. require("turbolinks").start()
  7. require("@rails/activestorage").start()
  8. require("channels")
  9. // Uncomment to copy all static images under ../images to the output folder and reference
  10. // them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
  11. // or the `imagePath` JavaScript helper below.
  12. //
  13. // const images = require.context('../images', true)
  14. // const imagePath = (name) => images(name, true)