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

# output.cleanDistPath

- **Type:** `boolean`
- **Default:** `true`

Whether to clean all files in the dist path before starting compilation.

By default, Modern.js will automatically clean up the files in the dist directory, you can disable this behavior by setting `cleanDistPath` to `false`.

```js
export default {
  output: {
    cleanDistPath: false,
  },
};
```
