devtool
devtool copied to clipboard
Can I watch custom files or control reload use code like gulp?
I have some files built by gulp, then devtool reload a lot of times, it bothers me.....
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);
Where would I add this?
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