devtool icon indicating copy to clipboard operation
devtool copied to clipboard

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

Open ykan opened this issue 9 years ago • 3 comments

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

ykan avatar Jun 23 '16 02:06 ykan

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

ykan avatar Jul 13 '16 02:07 ykan

Where would I add this?

hutber avatar Jan 13 '17 23:01 hutber

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

ykan avatar Jan 18 '17 05:01 ykan