| // This is a manifest file that'll be compiled into application.js, which will include all the files |
<> |
// This file is automatically compiled by Webpack, along with any other files |
| // listed below. |
|
|
| // |
|
|
| // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's |
|
// present in this directory. You're encouraged to place your actual application logic in |
| // vendor/assets/javascripts directory can be referenced here using a relative path. |
|
// a relevant structure within app/javascript and only use these pack files to reference |
| |
|
// that code so it'll be compiled. |
| // |
|
|
| |
|
require("@rails/ujs").start() |
| |
|
require("@rails/activestorage").start() |
| |
|
require("channels") |
| // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the |
|
|
| |
|
// Include main stylesheet |
| |
|
require("../source/main.scss") |
| // compiled file. JavaScript code in this file should be added after the last require_* statement. |
|
|
| |
|
// Include main file |
| |
|
require("../source/main") |
| // |
|
|
| |
|
// Initialize turbolinks |
| |
|
require("turbolinks").start() |
| // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details |
|
|
| |
|
// Uncomment to copy all static images under ../images to the output folder and reference |
| |
|
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>) |
| // about supported directives. |
|
// or the `imagePath` JavaScript helper below. |
|
= |
|
| //= require rails-ujs |
<> |
|
| //= require activestorage |
|
// const images = require.context('../images', true) |
| //= require turbolinks |
|
// const imagePath = (name) => images(name, true) |
| //= require_tree . |
|
|