sapphi-red / vite-plugin-static-copy

rollup-plugin-copy with dev server support.
MIT License
299 stars 32 forks source link

Support for optional file watching #35

Closed sashabaranova closed 1 year ago

sashabaranova commented 2 years ago

Hi there! I recently integrated the plugin in my project and it perfectly fit my needs. However, I ran into an issue with file watching in CI/CD - with chokadir running it hits the limit of fs watchers. Given that file watching in CI/CD is not required, maybe it would be a good idea to make file watching optional?

sapphi-red commented 2 years ago

This plugin uses chokidar only for dev. Because Vite uses chokidar for dev and there isn't a way to disable that, I think you need an option in Vite first.

sapphi-red commented 1 year ago

Closing due to lack of response.