Make babel-cli watching only given files and extensions. Use --only, --ignore and --extensions while process filenames with --out-file option.
This commit is contained in:
parent
8cd68ddc74
commit
a43a60e5b8
@ -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