Socket
Socket
Sign inDemoInstall

next-workbox

Package Overview
Dependencies
69
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-workbox

Next.js plugins for workbox and PWA


Version published
Maintainers
1
0

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 15 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc