Interface: SharedSwConfig
Extended by
Properties
filename?
optionalfilename:string
Default Value
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
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.