- You must have
yarn
ornpm
installed
- Clone the project
git clone git@github.com:bonsaiilabs/cra-custom-serviceworker.git
- Install
serve
if not installed already
npm install serve -g
- Create production build
npm run build
- Run
serve -s build
Your app with custom service worker is now running at http://localhost:5000