Originally created by: jon-ressio
webpack --watchI'd like to only see this warning printed one time per execution of next dev. Right now I see it every time a different bundle/batch of server components is compiled or when any code is recompiled and a page reloaded, it's very noisy.
I just built and tested this PR locally and I see the GenerateSW warning 4 times (I think next dev manages multiple webpack --watch processes behind the scenes for the different server and client packages, etc...) but after that initial warning it was quiet.
If maintainers don't want to accept this PR as default behavior, I can also change this PR to check for an environment variable like __WB_ONLY_WARN_ONCE or something like that. Just let me know
Originally posted by: jon-ressio
Just a note that this was an issue with the original next-pwa package which seems to be unmaintained for a while. https://github.com/DuCanhGH/next-pwa doesn't cause the same log spam.
So I no longer need this PR merged but I'll leave it in case others think it makes sense. Feel free to accept or reject