I'm playing around with workbox but I am getting the following error:
Skipping file 'app.js' due to size. [Max size supported is 2097152, this file is 4760833]
I understand why it would do this in production, and this isn't a problem in production as my app.js file is minified and is well under that limit.
But how can I generate a service worker I can use in development including these larger files?
The maximumFileSizeToCacheInBytes
configuration parameter, described in more detail in the docs, can be used to increase the limit.
E.g.:
{
maximumFileSizeToCacheInBytes: 5000000,
// ...other Workbox build configuration options...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With