---
title: cleanDistPath
---

# 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,
  },
};
```
