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

# dev.writeToDisk

- **Type:** `boolean | ((filename: string) => boolean)`
- **Default:** `(file) => !file.includes('.hot-update.')`

Controls whether the build output from development mode is written to disk.

:::info
The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to [Rsbuild - dev.writeToDisk](https://v2.rsbuild.dev/config/dev/write-to-disk).
:::