Experience-Monks / devtool

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

Can I watch custom files or control reload use code like gulp? #73

Open ykan opened 8 years ago

ykan commented 8 years ago

I have some files built by gulp, then devtool reload a lot of times, it bothers me.....

ykan commented 8 years ago

Maybe just add this lines(lib/file-watch.js):

module.exports = function fileWatch (glob, opt) {
  opt = assign({
    ignored: opt.config.ignored || ignores, // add this
    ignoreInitial: true
  }, opt);
hutber commented 7 years ago

Where would I add this?

ykan commented 7 years ago

You may just add to ignored to your .devtoolrc file, like:

{
    "ignored": ["tests/*.test.js"]
}

And modify lib/file-watch.js file like this: https://github.com/Jam3/devtool/pull/87