English
ResolverOptions
The resolver options containing environment information and callbacks for resolvePwaConfiguration.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
isDev | boolean | Whether the current environment is a development environment. | |
isWrongInjectManifest | (swSrc: string) => boolean | Promise<boolean> | When using inject-manifest, this callback must resolve if the strategy is wrong, the implementation should be:- if the service worker with .ts or .mts extension, then, it is build-sw and not inject-manifest strategy: must return true- if the service worker outside public dir, then, it is build-sw and not inject-manifest strategy: must return true- otherwise must return false | |
root? | string | the | The project root used to resolve a relative injectManifest.swSrc. |