@next-with-offline/service-worker

4.0.0 • Public • Published

@next-with-offline/service-worker

size dependencies build downloads license

Code utilities for configuring a service worker. Intended to be used alongside @next-with-offline/next-plugin and @next-with-offline/react-hook. Read the top level documentation for more information about usage.

Install

yarn add @next-with-offline/service-worker

Basic Usage

import hasOffline from "@next-with-offline/service-worker";

hasOffline({
  cleanupOutdatedCaches: true,
  offlineGoogleAnalytics: false,
  offlinePath: "/offline",
  showReloadPrompt: false,
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    2
    • latest

Version History

Package Sidebar

Install

npm i @next-with-offline/service-worker

Weekly Downloads

2

Version

4.0.0

License

MIT

Unpacked Size

11.6 kB

Total Files

6

Last publish

Collaborators

  • cansin