[PWA] Service worker cache and lazy loading


#1

In service-worker.js per default I found the following:

self.toolbox.precache(
  [
    './build/main.js',
    './build/vendor.js',
    './build/main.css',
    './build/polyfills.js',
    'index.html',
    'manifest.json'
  ]
);

so only main.js is cached, how could I modify this to support lazy loaded bundles? Is it possible to use wildcards, like adding ./build/**/*.js?