Repository example made for the Medium article: WorkboxJs produces Service Workers for you. Also through Webpack.
git clone https://github.com/LasaleFamine/medium-webpack-workbox && cd medium-webpack-workbox
yarn
yarn build
yarn start
MIT © LasaleFamine