• English
  • Interface: PWAPluginOptions

    Properties

    dev?

    optional dev: boolean

    Enable with "rsbuild dev" command?

    Default Value

    false

    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"

    htmlTags?

    optional htmlTags: HtmlTagsConfig


    registerSw?

    optional registerSw: false | RegisterSwConfig

    false to disable

    Default Value

    RegisterSwScriptConfig


    sw?

    optional sw: ServiceWorkerConfig


    webAppManifest?

    optional webAppManifest: false | WebAppManifestConfig

    false to disable