title: using(adding) images to html with help image_pack_tag by Webpacker in Rails 6
body: <p>I have a problem with adding image to web-page
  I try to use Webpack
  so I download images in application.js</p>
  <pre><code>const images = require.context('./assets/images/', true)
  const imagePath = (name) =&gt; images(name, true)
  </code></pre>
  <p>after that i try to implement their in html.erb</p>
  <pre><code>          &lt;div class=&quot;modal-body&quot;
            &lt;%= image_pack_tag 'calibration.png' %&gt;
            &lt;/div&gt;
  </code></pre>
  <p>so, i have this error
  what i do wrong? and what i need to do?
  <img src="https://i.stack.imgur.com/7o0Fr.png" alt="enter image description here" /></p>