DEV Community 👩‍💻👨‍💻

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

thewrongguy profile image

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

chuksjoe profile image
Chukwunonso Orjiakor Author

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