1.0.3 • Published 4 months ago

@jswork/next-offline-sw v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

next-offline-sw

Offline plugin for service worker runtime helper.

version license size download

installation

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

apis

apiparamsdescription
disabledYou can implement it in your project(default: window.SW_DISABLED)
installoptionsInstall 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.