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:

Angular has grown up — and the best is yet to come

It’s never been a better time to be an Angular developer. Reflect on the highlights of Angular’s evolution from its early days to the recent v20 release.

Lewis Cianci
Jul 22, 2025 ⋅ 10 min read
JavaScript logo on abstract neon background with red and blue light trails

Iterator helpers: The most underrated feature in ES2025

ES2025 adds built-in iterator helpers to JavaScript, enabling lazy .map(), .filter(), .take(), and more; ideal for processing large or infinite data streams efficiently.

Elijah Asaolu
Jul 21, 2025 ⋅ 6 min read
MCP Servers

The top 15 MCP servers for your AI projects

Explore 15 essential MCP servers for web developers to enhance AI workflows with tools, data, and automation.

Ikeh Akinyemi
Jul 21, 2025 ⋅ 17 min read
Glowing 3D cube with the MediaPipe and React logos overlaid, symbolizing integration of AI and web development

How to build better AI apps in React with MediaPipe’s latest APIs

Learn how to integrate MediaPipe’s Tasks API into a React app for fast, in-browser object detection using your webcam.

Emmanuel John
Jul 17, 2025 ⋅ 10 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