output.filename.bundle
optionalbundle?:BundleFilename
Lynx 新增配置
此配置由 pluginLynx 新增,不属于 Rsbuild 配置。在 rsbuild.config.ts 中,将它传给 pluginLynx({ ... })。
bundle 文件的名称。
默认值
'[name].[platform].bundle'
备注
支持以下占位符:
[name]:入口名称。[platform]:Rsbuild environment 的名称。[contenthash]:bundle 内容的 hash。
示例
- 在 bundle 文件名中使用指定长度的 content hash:
- 使用函数分别控制主 bundle 和 lazy bundle (例如将 lazy bundle 输出到另一个目录,并附加 git commit hash):