title: workbox-webpack-plugin not caching chunk in React PWA
body: <p>I'm currently creating a PWA with the workbox-webpack-plugin that was working fine until I added some modules such as Sentry or react-data-grid. When these two modules are installed, the cache only contains 15Mb instead of 22Mb, which results in a blank page when I try to reload the page offline. The file that isn't cached is '/static/js/****.chunk.js'.</p>
  <p>Here's my config-override.js file :</p>
  <pre><code>const WorkboxWebpackPlugin = require('workbox-webpack-plugin');
  module.exports = function override(config, env) {
      config.plugins = config.plugins.map(plugin =&gt; {
          if (plugin.constructor.name === 'GenerateSW') {
              return new WorkboxWebpackPlugin.InjectManifest({
                  swSrc: './src/custom-service-worker.js',
                  swDest: 'service-worker.js'
              })
          }
          return plugin
      })
      return config;
  }
  </code></pre>
  <p>And here's my custom-service-worker.js :</p>
  <pre><code>/* eslint-disable */
  import { precacheAndRoute } from 'workbox-precaching';
  ...
  
  precacheAndRoute(self.__WB_MANIFEST);
  
  ...
  
  self.addEventListener('install', e =&gt; {
      const preCache = async () =&gt; {
          caches.open(STATIC_CACHE_NAME).then(cache =&gt; {
              cache.addAll(STATIC_CONTENT);
          });
          self.skipWaiting();
      }
      e.waitUntil(preCache());
  });
  
  self.addEventListener('activate', e =&gt; {
      const deleteOldCaches = async () =&gt; {
          caches.keys().then(keys =&gt; {
              return Promise.all(keys
                  .filter(key =&gt; key !== STATIC_CACHE_NAME &amp;&amp; key !== DYNAMIC_CACHE_NAME &amp;&amp; !key.includes(&quot;workbox-precache&quot;)) // Si la cache ne correspond pas aux nom des caches actuelles
                  .map(key =&gt; caches.delete(key))
              );
          });
          self.clients.claim();
      }
      e.waitUntil(deleteOldCaches());
  });
  </code></pre>
  <p>If you have any idea about how I could fix that problem, I'd really appreciate your help !</p>