output.filename.bundle
optionalbundle?:BundleFilename
Lynx-specific option
This option is added by pluginLynx, rather than Rsbuild. In rsbuild.config.ts, pass it to pluginLynx({ ... }).
The name of the bundle files.
Default Value
'[name].[platform].bundle'
Remarks
The following placeholders are supported:
[name]: the name of the entry.[platform]: the name of the Rsbuild environment.[contenthash]: the hash of the bundle content.
Examples
- Using content hash with length in bundle filename:
- Using a function to control the main bundle and the lazy bundles separately (e.g. emit lazy bundles into another directory with a git commit hash appended):