> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.

# dev.writeToDisk

- **类型：** `boolean | ((filename: string) => boolean)`
- **默认值：** `(file: string) => !file.includes('.hot-update.')`

用于控制是否将开发环境的构建产物写入到磁盘上。

:::info
该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 [Rsbuild - dev.writeToDisk](https://v2.rsbuild.dev/zh/config/dev/write-to-disk)。
:::