Interface: PWAPluginOptions

Properties

disabled?

optional disabled: boolean | (ctx) => boolean

Disable the plugin? By default the plugin is disabled if the environment is not "web"

Example

({environmentName}) => environmentName !== "web"

registerSw?

optional registerSw: false | RegisterSwConfig

false to disable

Default Value

RegisterSwScriptConfig


sw?

optional sw: ServiceWorkerConfig


webAppManifest?

optional webAppManifest: false | WebAppManifestConfig

false to disable