devtool icon indicating copy to clipboard operation
devtool copied to clipboard

Ignore files when using --watch

Open hutber opened this issue 8 years ago • 5 comments

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 avatar Dec 30 '16 19:12 hutber

Any ideas on this chaps :D?

hutber avatar Jan 13 '17 23:01 hutber

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);

nukkamoto avatar Feb 04 '17 10:02 nukkamoto

@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?

nukkamoto avatar Apr 13 '17 09:04 nukkamoto

Would be great to have this :)

hutber avatar Jul 18 '17 15:07 hutber

Merge it!!! lol

hutber avatar May 28 '18 21:05 hutber