You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So as the subject line says, I'm struggling with the PWA made with the create-react-app.
I used the pwa template and when I'm doing npm start, then my service worker is not being executed/started.
However, if I'm building the app and then hosting it via serve (npm run build && serve -s build) then service worker is executing and starting fine.
Here my question is that it is very painful to build the app again and again even after a minor change in the app/service worker.
So it is not practical to test the built app as we won't be able to test our changes to service worker in realtime.
Any solution to this?
I want to continuously develop my app as well continuously test the changes in the service worker without building the app again again.
It becomes very challenging if we are doing some experiment with the service worker and our code requires constant change to the service worker or other related app files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So as the subject line says, I'm struggling with the PWA made with the create-react-app.
I used the pwa template and when I'm doing npm start, then my service worker is not being executed/started.
However, if I'm building the app and then hosting it via serve (npm run build && serve -s build) then service worker is executing and starting fine.
Here my question is that it is very painful to build the app again and again even after a minor change in the app/service worker.
So it is not practical to test the built app as we won't be able to test our changes to service worker in realtime.
Any solution to this?
I want to continuously develop my app as well continuously test the changes in the service worker without building the app again again.
It becomes very challenging if we are doing some experiment with the service worker and our code requires constant change to the service worker or other related app files.
Beta Was this translation helpful? Give feedback.
All reactions