question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[PWA] Use Workbox instead of sw-precache

See original GitHub issue

It 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:closed
  • Created 6 years ago
  • Reactions:37
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

12reactions
jeffposnickcommented, Sep 5, 2018

There’s an open PR containing a Workbox implementation: https://github.com/facebook/create-react-app/pull/4169

10reactions
kevinah95commented, Aug 7, 2018

@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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found