title: Event or callback when webpack fails to load a module or chunk
body: <p>Is there some callback or Event in <strong>webpack</strong> to know when a module or chunk has failed to load in the browser?</p>
  
  <p>I know that webpack can tell you that a certain module is not found when bundling, but suppose you make some changes to the scripts, but a user is already in the webapp... then the chunk names that were bundled earlier will not be found.</p>
  
  <p>Below is such error that will appear:</p>
  
  <pre><code>fb81469e-872e-4459-b2ba-91ebfaf50d48.js:106 Uncaught (in promise) ChunkLoadError: Loading chunk 28 failed.
  </code></pre>