Skip to content

BackgroundSyncPlugin ​

Class @vite-pwa/workbox-swkit/background-sync

A class implementing the fetchDidFail lifecycle callback. This makes it easier to add failed requests to a background sync Queue.

Constructor ​

ts
new BackgroundSyncPlugin(name: string, options?: QueueOptions)

Parameters

  • name – See the workbox-background-sync.Queue documentation for parameter details.

  • options – See the workbox-background-sync.Queue documentation for parameter details.

Released under the MIT License.