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

try different stats submission

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