DEV Community

Discussion on: How to transform a React app built on Webpack to PWA

Collapse
 
bhargab profile image
BHARGAB KALITA

Hey, I have a question, in the src folder I have serviceWorker.js file ,what should I do with it? Should I delete it !!

Collapse
 
chuksjoe profile image
Chukwunonso Orjiakor

Good evening Kalita. Sorry I'm just replying your question.
If you've done your webpack setting rightly, the serviceWorker.js file will be auto generated when you build the app.

Also note that you don't need to use the create-react-app command, cos it sets up the PWA for you by default