0.0.8 • Published 8 years agoCLI
cra-replace-service-worker
Licence
MIT
Version
0.0.8
Deps
2
Size
3 kB
Vulns
0
Weekly
0
This package replaces Create React App's service worker with you own service worker without ejecting. This package also adds a variable 'PRECACHE_FILES' to your custom service worker. It contains a list of file-paths to all CRA files generated inside the 'build'-folder.
#Usage# In your package.json under scripts add the following:
"replace-sw": "cra-replace-service-worker ./src/your-custom-sw.js"
Enjoy!