boolean
true
Whether to clean up all files under the output directory (default is dist
) before the build starts.
By default, Rsbuild automatically cleans the files under the output directory. You can set cleanDistPath
to false
to disable this behavior.
If you only need to clean files before the production build, and not in the development build, you can configure it as follows: