I created a react app with create-react-app 4.1.0 but it doesn't generate a serviceworker in src, now i want to convert the react app into a pwa I created a worker.js in the public/
but to register the serviceworker in the src/index.js i want a serviceworker.js.
Any Insights regarding how to create a custom serviceworker file.
I created a react app with create-react-app 4.1.0 but it doesn't generate a serviceworker in src, now i want to convert the react app into a pwa I created a worker.js in the public/
but to register the serviceworker in the src/index.js i want a serviceworker.js.
Any Insights regarding how to create a custom serviceworker file.
Like I explained in the article, you need to use the pwa template, not the default CRA.