2022-07-14
1135
#create react app#react
Pam Lu
30526
Jul 14, 2022 â‹… 4 min read

PWA with Create React App and service workers

Pam Lu Tech writer and factotum.

Recent posts:

A guide to image overlays in CSS

Learn the basics of applying image overlays in CSS and explore more interactive techniques like hover effects and animations.

Ibadehin Mojeed
Mar 11, 2025 â‹… 5 min read

How to use EJS to template your Node.js application

EJS makes working with templates in Node.js super easy — but only if you know how to use it. This guide walks you through the essentials and more.

Samuel Olusola
Mar 11, 2025 â‹… 15 min read
Remote Branches In Git LogRocket

How to check out a remote branch in Git: A step-by-step guide

Learn how to list, fetch, and checkout remote Git branches, plus troubleshoot outdated branch lists effectively.

Oyinkansola Awosan
Mar 11, 2025 â‹… 8 min read
How To Switch Node.js Versions With NVM

How to switch Node.js version: A cross-platform guide for NVM and alternatives

Use NVM, Node Version Manager, to switch between Node.js versions, simplifying your development process.

Precious Luke
Mar 10, 2025 â‹… 9 min read
View all posts

5 Replies to "PWA with Create React App and service workers"

  1. Hello… what if I already created the app without the templato. How can I add the same service-worker.js file to my project?

  2. I think you just need to add your file to the public folder and register it as you normally would then. The workbox stuff gets trickier though if you’re using that. There is a good walkthrough on making service workers with CRA on Udemy if you search there for `custom service worker CRA without ejecting`.

  3. Goto your public folder and create One file called serviceWorker.js and include that file inside index.html by registering. Check more on internet

Leave a Reply