Merge pull request #3087 from nordluf/master
Make babel-cli watching only given files and extensions.
This commit is contained in:
commit
02c155e32a
@ -137,6 +137,8 @@ module.exports = function (commander, filenames, opts) {
|
||||
persistent: true,
|
||||
ignoreInitial: true
|
||||
}).on("all", function (type, filename) {
|
||||
if (util.shouldIgnore(filename) || !util.canCompile(filename, commander.extensions)) return;
|
||||
|
||||
if (type === "add" || type === "change") {
|
||||
util.log(type + " " + filename);
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user