title: Where to put custom javascript code in rails 6?
body: <p>I am following this tutorial <a href="https://medium.com/@guilhermepejon/how-to-install-bootstrap-4-3-in-a-rails-6-app-using-webpack-9eae7a6e2832" rel="nofollow noreferrer">https://medium.com/@guilhermepejon/how-to-install-bootstrap-4-3-in-a-rails-6-app-using-webpack-9eae7a6e2832</a> and at a point it says</p>
  
  <pre><code>Let’s start by creating a new css manifest inside our app/javascript 
  folder. We will use this file to import all our css from now on.
  
  $ mkdir app/javascript/stylesheets
  $ touch app/javascript/stylesheets/application.scss
  
  Note: In an existing app, you’ll have to import all your current css 
  to the folder we created above, and import them through the newly 
  created manifest file.
  </code></pre>
  
  <p>I just can't digest it. What is the point of putting stylesheets folder &amp; files under javascripts/ . Is it logical or good approach? I have seen it lot other sites and 1 video too (unable to find it right now). If its a recommended way why rails doesn't provide it as default.  </p>
  
  <p>Please suggest alternative of putting javascripts (custom, not libraries) if not this?</p>