July 2018
Intermediate to advanced
354 pages
8h 51m
English
By default, Workbox uses a debug version of the library with extra logging capabilities. You can turn this off and use the production version by setting the debug flag to false in the setConfig method. The production version is more lightweight, which means you won't be as much of a burden on your customer's data plans. The production code is minified and has heavier logging capabilities removed:
workbox.setConfig({
debug: false
});
By default, Workbox loads modules from the CDN. If you are hosting Workbox on your server, then you need to configure Workbox to load modules from your server. This requires using the modulePathPrefix in the configuration object.
To configure Workbox to use a local production version, the ...
Read now
Unlock full access