help me. I have a problem after running "npm run dev" warning appears :
WARNING in css/app.css is 4.13 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
What does the warning mean? Can anyone explain? And how to solve it? Thank you good people^^
sw-precache checks which files the service worker will cache (precache) immediately during registration. During build sw-precache sees that app.css is part of your application and wants to and it to the list of precached file. But your app.css is 4.13 MB big, which is to big for the default configuration.
First advise is: Check is you really need that much CSS and if it is possible to reduce file size.
If this is not possible you can adjust maximumFileSizeToCacheInBytes:
I am unsure if you use sw-precache, because it is outdated, you should switch to use workbox-build.
For workbox-build use the following config by setting maximumFileSizeToCacheInBytes: