I am running the below command on my dist directory.
workbox copyLibraries dist/en-in/; workbox generateSW workbox-config-prod.js;
The service worker file calls
importScripts("/workbox-v4.3.1/workbox-sw.js");
workbox-sw.js downloads below files:
workbox-core.prod.js
workbox-precaching.prod.js
workbox-routing.prod.js
workbox-strategies.prod.js
workbox-expiration.prod.js
workbox-cacheable-response.prod.js"
Question 1:
I have set long expiry cache headers on all files served from /workbox-v4.3.1/ path since it is versioned. Is there any downside to this approach?
Question 2:
Can Workbox provide support for teams which don't use any bundlers?
If workbox-cli can output a single file which has 1. Only those Workbox modules which as referenced in the workbox-config file. 2. Code generated from the workbox-config file. 3. Minified This was how sw-precache used to generate service worker file.