Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@jswork/next-offline-sw

afeiship1MIT1.0.3TypeScript support: included

Offline plugin for service worker runtime helper.

next, offline, service-worker, sw, prefetch, cache, offline-plugin

readme

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