@feizheng/next-offline-sw

1.0.2 • Public • Published

next-offline-sw

Offline plugin for service worker runtime helper.

version license size download

install

npm install -S @feizheng/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 '@feizheng/next-offline-sw';

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

resources

license

Code released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/next-offline-sw

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

6.94 kB

Total Files

5

Last publish

Collaborators

  • afeiship