title: How to include app.js and vendor.js using lazy loading with hash in the names
body: <p>I have a Laravel 5.8 app with Vue 2 and laravel-mix 4.0. (webpack 4.46.0)
  I have lazy loading in my routes file like this:</p>
  <pre><code>const HomePageView = () =&gt; import(/* webpackPrefetch: true */&quot;./views/HomePageView.vue&quot;);
  </code></pre>
  <p>in my webpack.mix.js I have the following configuration to add hashes to the names of the bundles</p>
  <pre><code>mix.react('resources/js/app.js', 'public/js')
      .copy('node_modules/lodash/lodash.min.js', 'public/js')
      .extract(['vue', 'jquery'])
      .webpackConfig({
          output: {
              chunkFilename: '[name].[contenthash:8].js'
          },
  </code></pre>
  <p>Before adding the hashes, i used to load the app.js and vendor.js directly in my .blade.html,</p>
  <pre><code>...more blade html
  &lt;script src=&quot;{{asset('js/vendor.js')}}?v={{getAssetsVersion()}}&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;{{asset('js/app.js')}}?v={{getAssetsVersion()}}&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>but now that each build could have a different name due to the hashes, I don't know how to do it.</p>
  <p>How could I achieve this?</p>
  <p>Maybe with a way to ignore the hashes for these two files (app.js and vendor.js) but I don't know how to do it.</p>