mill icon indicating copy to clipboard operation
mill copied to clipboard

Allow configuring watch-ignored directories in Mill frontmatter

Open arturaz opened this issue 4 months ago • 1 comments

We ignore out/ in the filesystem watcher by default, as it consumes resources and there is no point in watching that, but a project might contain more directories like that.

For example, my full stack project has:

appClient/vite/node_modules # very large...
appClient/vite/scala_output # generated by scala JS

I suspect there is quite an overhead in watching those, so we could have:

//| mill-watch-ignore:
//| - appClient/vite/node_modules
//| - appClient/vite/scala_output

arturaz avatar Aug 21 '25 09:08 arturaz

To my understanding, Mill isn't watching the full project dir by default, but only explicitly configured paths (via source tasks or explicit watch API).

lefou avatar Aug 22 '25 06:08 lefou