Experience-Monks / devtool

[OBSOLETE] runs Node.js programs through Chromium DevTools
MIT License
3.76k stars 148 forks source link

Ignore files when using --watch #111

Open hutber opened 7 years ago

hutber commented 7 years ago

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 commented 7 years ago

Any ideas on this chaps :D?

valtido commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

Would be great to have this :)

hutber commented 6 years ago

Merge it!!! lol