提交 e7888452 编写于 作者: J Johannes Rieken

try different stats submission

上级 5e070245
...@@ -327,15 +327,16 @@ function packageTask(platform, arch, opts) { ...@@ -327,15 +327,16 @@ function packageTask(platform, arch, opts) {
.pipe(rename('bin/' + product.applicationName))); .pipe(rename('bin/' + product.applicationName)));
} }
return result.pipe(es.through(undefined, function () { // submit all stats that have been collected
// submit all stats that have been collected during the build phase // during the build phase
if (!opts.stats) { if (opts.stats) {
return this.emit('end'); result.on('end', () => {
} const { submitAllStats } = require('./lib/stats');
const { submitAllStats } = require('./lib/stats'); submitAllStats(product).then(() => console.log('Submitted bundle stats!'));
submitAllStats(product).then(() => this.emit('end')).catch(() => this.emit('end')); });
}
})).pipe(vfs.dest(destination));
return result.pipe(vfs.dest(destination));
}; };
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册