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,
|
persistent: true,
|
||||||
ignoreInitial: true
|
ignoreInitial: true
|
||||||
}).on("all", function (type, filename) {
|
}).on("all", function (type, filename) {
|
||||||
|
if (util.shouldIgnore(filename) || !util.canCompile(filename, commander.extensions)) return;
|
||||||
|
|
||||||
if (type === "add" || type === "change") {
|
if (type === "add" || type === "change") {
|
||||||
util.log(type + " " + filename);
|
util.log(type + " " + filename);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user