Skip to content

Instantly share code, notes, and snippets.

View zukilover's full-sized avatar
🦁

Zukilover zukilover

🦁
  • Bandung, Indonesia
View GitHub Profile
@carlosalvarez91
carlosalvarez91 / config-overrides.js
Last active January 14, 2024 14:59
customize service worker with workbox
//https://medium.com/@nrlhq/setting-up-pwa-lighthouse-audit-with-create-react-app-40e17180ea6b
// npm i react-app-rewired customize-cra workbox-webpack-plugin workbox-precaching
// this will generate a workbox.js file in /build
//no need for precache-manifest.12345blabla.js
const { override, addWebpackPlugin } = require('customize-cra');
const { InjectManifest } = require('workbox-webpack-plugin');