Skip to content
Permalink
Browse files
setting finish event on outputstream
  • Loading branch information
Anis Kadri committed Apr 11, 2014
1 parent b7bf810 commit 781ec24101b3c7f241d160142a300853ea279daa
Showing 1 changed file with 2 additions and 2 deletions.
@@ -252,12 +252,12 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir, www_

releaseBundle.pipe(outReleaseFileStream);

releaseBundle.on('end', function() {
outReleaseFileStream.on('finish', function() {
var newtime = new Date().valueOf() - time;
plugman.emit('verbose', 'generated cordova.' + platform + '.js @ ' + commitId + ' in ' + newtime + 'ms');
});

releaseBundle.on('error', function(err) {
outReleaseFileStream.on('error', function(err) {
var newtime = new Date().valueOf() - time;
console.log('error while generating cordova_b.js');
plugman.emit('verbose', 'error while generating cordova.js');

0 comments on commit 781ec24

Please sign in to comment.