@jswork/next-offline-sw

1.0.3 • Public • Published

next-offline-sw

Offline plugin for service worker runtime helper.

version license size download

installation

npm install -S @jswork/next-offline-sw

apis

api params description
disabled You can implement it in your project(default: window.SW_DISABLED)
install options Install with sevice worker
uninstall - Remove all sevice worker
update - ApplyUpdate & delay refresh
applyUpdate - Apply new resource
refresh - Global.reload

usage

import NxOfflineSw from '@jswork/next-offline-sw';

// code goes here:
NxOfflineSw.install();

resources

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-offline-sw

Homepage

js.work

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

7.91 kB

Total Files

6

Last publish

Collaborators

  • afeiship