Interface: GenerateSwModeConfig
Extends
Properties
filename?
optionalfilename:string
Default Value
Inherited from
include?
optionalinclude:string[] | (assets,initialAssets) =>string[]
This array (or the array returned by the callback) is passed directly to workbox's globPatterns.
By default all assets bundled by rsbuild are included (except the ones that match *.map or *.LICENSE.txt patterns) plus the sw registration script and the web app manifest
Examples
Inherited from
includeWebAppManifestIcons?
optionalincludeWebAppManifestIcons:boolean|number[]
should precache the icons defined in WebAppManifestConfig? it can be a boolean or an array of the icons' indexes that should be precached.
Examples
Inherited from
SharedSwConfig.includeWebAppManifestIcons
mode
mode:
"generateSw"
workboxOptions?
optionalworkboxOptions:WorkboxGenerateSWOptions