Skip to content

ResolverOptions ​

Interface @unplugin-pwa/core/config

The resolver options containing environment information and callbacks for resolvePwaConfiguration.

Properties ​

PropertyTypeDefaultDescription
isDevbooleanWhether 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?stringthe cwd option, or process.cwd()The project root used to resolve a relative injectManifest.swSrc.

Released under the MIT License.