PWA

pwa.workboxSw

string

New in 1.4.1

Set workbox-sw.js source. Defaults to: 'node_modules/workbox-sw/build/workbox-sw.js'.

pwa.enabled

boolean

New in 1.4.1

Automatic building PWA enabled. Defaults to: false.

pwa.mode

string

New in 1.4.0

Cache assets and take full advantage of features used to build Progressive Web Apps. Defaults to: 'generateSW'.

Two Primary Mode

  • generateSW: The generateSW mode creates a service worker file for you, and writes it out to disk.
  • injectManifest: The injectManifest mode will generate a list of URLs to precache, and add that precache manifest to an existing service worker file. It will otherwise leave the file as-is.

pwa.options

object

New in 1.4.0

The config of the building PWA. Defaults to: {}.

results matching ""

    No results matching ""