next-workbox

2.1.0 • Public • Published

next-workbox

Next.js plugin for workbox. The plugin help you to use service worker for Next.js and now 2.0

Installation

npm install --save-dev next-workbox

or

yarn add -D next-workbox

Usage

// 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

Package Sidebar

Install

npm i next-workbox

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

6 kB

Total Files

6

Last publish

Collaborators

  • ragingwind