I can't find a way to add custom code (eg push notifications, etc.) to the service worker when using the pwa (workbox) nuxt module. Is there a way?
Hey. Last time I've checked workbox web pack plugin there was no easy way unless writing a custom sw.js template. But try to investigate more possible ways soon :)
How about changing the module to the workbox-build-webpack-plugin instead of the normal workbox-webpack-plugin?
ah, wait, it's the same … just got confused because I saw it has a swSrc config options and workbox-webpack-plugin didn't have it
Closing this because my last comments don't make sense. Will open a more eloquent issue later.