For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /configure/app/output/clean-dist-path.md.

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.

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