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 files when using --watch #111

Open
hutber opened this issue Dec 30, 2016 · 5 comments
Open

Ignore files when using --watch #111

hutber opened this issue Dec 30, 2016 · 5 comments

Comments

@hutber
Copy link

hutber commented Dec 30, 2016

I'm using devtools to start up my server file with

devtools bin/www --watch

Which is great and works perfectly along side gulp for me.

But whenever I change a jade/pug file devtools will reload the server which is a little too extreme.

Can I get it to ignore files?

@hutber
Copy link
Author

hutber commented Jan 13, 2017

Any ideas on this chaps :D?

@valtido
Copy link

valtido commented Feb 4, 2017

I have added a #113 pull request, so you can use the .devtoolrc file to create an array of excluded paths.

{ ... "watcher": { "ignored": ["public"]}, ... }

So keep an eye open on that, for the time being if you wish to do this yourself,

add this line just under line AppData\Roaming\npm\node_modules\devtool\lib\file-watch.js:12 (windows global installation)
if(opt.config.watcher.ignored) ignores = ignores.concat(opt.config.watcher.ignored);

@valtido
Copy link

valtido commented Apr 13, 2017

@mattdesl Could you please merge the change I made? or if you guys are going to be inactive on project, could you add some new people to contribute and manage it in the future?

@hutber
Copy link
Author

hutber commented Jul 18, 2017

Would be great to have this :)

@hutber
Copy link
Author

hutber commented May 28, 2018

Merge it!!! lol

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