Created
July 12, 2020 08:24
-
-
Save GautamPanickar/cc24e93d980423fe6b1d41edc6126175 to your computer and use it in GitHub Desktop.
Service worker with Google's Workbox for Angular App - package.json scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "swtest", | |
"version": "0.0.0", | |
"scripts": { | |
"ng": "ng", | |
"build-prod": "ng build --prod", | |
"postbuild-prod": "npm run sw-prod-webpack", | |
"sw-prod-webpack": "rimraf ./dist/swtest/service-worker.js && webpack --config ./src/sw/webpack.sw.config.js --progress --colors && workbox injectManifest ./src/sw/workbox-config.js && http-server dist/swtest -p 4200" | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment