next-workbox
v2.1.0
Published
Next.js plugins for workbox and PWA
Maintainers
Readme
next-workbox
Next.js plugin for workbox. The plugin help you to use service worker for Next.js and now 2.0
After 2.x, only works with now 2.0 from zeit in production mode. You can check out after publishing your app to now- Built on top of next-workbox-webpack-plugin, you can use almost all options
Installation
npm install --save-dev next-workboxor
yarn add -D next-workboxUsage
// next.config.js
const withWorkbox = require('next-workbox');
module.exports = withWorkbox({
generateBuildId: async () => {
// You must have own custom build id
return 'my-build-id';
}
});License
MIT © Jimmy Moon
