Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore Directories from Polling #437

Closed
stevenmccord opened this issue Oct 13, 2017 · 2 comments
Closed

Ignore Directories from Polling #437

stevenmccord opened this issue Oct 13, 2017 · 2 comments

Comments

@stevenmccord
Copy link

I am sure I am missing something, but is there a way to set it up that when we ignore a directory that polling doesn't actually setup looking at it. I think that it should be ignored, but I don't know exactly if I am setting something up wrong.

For example, say I wanted to ignore node_modules from the listening for all directories recursively, is there an example that shows that. Or is this not possible? Thanks!

@stevenmccord
Copy link
Author

Just to provide a bit more information here, this is what I am trying to do.

Set up one directory to watch like so /code/

Inside of that directory I would have something like this

/code/project1/src/
/code/project1/node_modules/
/code/project2/src/
/code/project2/node_modules/

I want to ignore those node_modules directories from polling altogether. When I turn on polling it appears they are still adding those initially and b/c of that it takes longer to recognize the changes. It does appear that it is ignoring any file modifications to the node_modules, but it appears that it is still including that in the polling.

I read up on this ticket, and it appears that it should work in this manner, but maybe I am not fully understanding everything. #274.

Thanks!

@ColinDKelley
Copy link
Collaborator

We merged in a recent optimization to not watch ignored directories. I'm hoping that addressed this issue. So I'm closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants