title: How to require custom JS files in Rails 6
body: <p>I'm currently trying Rails 6.0.0.rc1 which seems to have moved the default <code>javascript</code> folder from <code>app/assets/javascript</code> to <code>app/javascript</code>. The <code>application.js</code> file is now located in <code>app/javascript/packs</code>. Now, I want to add a couple of js files, but for some reason they don't get imported and I can't find any documentation on how this can be done in Rails 6. I tried a couple of things:</p>
  
  <ol>
  <li><p>Create a new folder <code>custom_js</code> under <code>app/javascript/packs</code>, putting all my js files there and then add a <code>require "custom_js"</code> to <code>application.js</code>.</p></li>
  <li><p>Copy all my js files under <code>app/javascript/channels</code> (which should be included by default, since <code>application.js</code> has <code>require("channels")</code>).</p></li>
  <li><p>Adding <code>require_tree .</code> to <code>application.js</code>, which was the previous approach.</p></li>
  </ol>
  
  <p>How can I load my own js files inside a Rails 6 application?</p>