title: Rails 6: how to use <script> tag in html file
body: <p>Hello and have a good day!<br/>
  While building my own Rails app, I encounter this problem. Rails 6 use webpacker by default:</p>
  <pre><code>&lt;head&gt;
      &lt;%= javascript_pack_tag 'file_name' %&gt;
  &lt;/head&gt;
  </code></pre>
  <p>which will load the <strong>file_name.js</strong> from <strong>./app/javascript/packs</strong> into the asset pipeline</p>
  <p><em>But</em>
  , I don't want this.
  I want to use the good ol' days html <code>&lt;script src=&quot;/assets/file_name.js&quot;&gt;&lt;/script&gt;</code><br/>
  In other words, load the file directly into the view in development environment.<br/><br/>
  The reason for this is that it is <strong>the proven method</strong> of fast and comfortably develop with javascript.<br/>
  Meanwhile, webpacker will be used in production environment for speed loading and later, scalability.<br/><br/>
  I can't find any question relating to this problem. Thus, I am here to ask for help.<br/>
  How can I use <code>&lt;script&gt;</code> tag to include js file in the view?</p>