[PWA] Use Workbox instead of sw-precache
See original GitHub issueIt would be nice to use Workbox instead of sw-pracache
for genrating service-worker.js
file since it is officially supported by Google and has more features than sw-pracache
. It has also official Webpack plugin so integration shouldn’t be hard.
Some more info about Workbox is here https://developers.google.com/web/tools/workbox/
Issue Analytics
- State:
- Created 6 years ago
- Reactions:37
- Comments:21 (11 by maintainers)
Top Results From Across the Web
Using Workbox + Webpack to precache with Service Worker
Workbox is a new project from Google that makes service worker use-cases such as caching, background sync and queueing of analytics whilst ...
Read more >How to build a custom PWA with Workbox in create-react-app
In this follow up post, I'm going to take you through how to build a custom Progressive Web App (PWA) using Google's Workbox...
Read more >Build A PWA With Webpack And Workbox - Smashing Magazine
This tutorial will help you transform an app that doesn't work offline into a PWA that works offline and shows an update available...
Read more >react-app-rewire-workbox - npm
sw-precache and sw-toolbox are being phased out in favour of Workbox so ideally we'd like to use Workbox instead! Create react app also...
Read more >How to use Google Workbox with Next.js? - Stack Overflow
I have an Next.js app that's currently using sw-precache and sw-precache-webpack-plugin to generate a service worker. I would like to migrate to ...
Read more >Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There’s an open PR containing a Workbox implementation: https://github.com/facebook/create-react-app/pull/4169
@simonedavico I wrote a Medium inspired in your comment. If anyone is interested in how to use the plugin, I am glad to share it: Using Workbox with Create React App (Without Ejecting)