feat(ruffle): add alternative ruffle flash target runner
This commit is contained in:
@@ -13,7 +13,14 @@ class TailVinyl extends Vinyl {
|
||||
super(params);
|
||||
if (params.path) {
|
||||
this.tail = new Tail(params.path);
|
||||
this.tail.on('line', data => this.contents.write(data + '\n'));
|
||||
this.tail.on('line', line => {
|
||||
if (params.handler) {
|
||||
line = params.handler(line);
|
||||
}
|
||||
if (line) {
|
||||
this.contents.write(line + '\n');
|
||||
}
|
||||
}),
|
||||
this.tail.on('error', error => this.contents.write('error: ' + error));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user