From 10f7bdbf3d5356cfca8db49df1feab4ca168d8cb Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Thu, 7 Aug 2014 15:58:14 -0700 Subject: [PATCH] Increase the max buffer for cordova build --- tools/commands-cordova.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index bf6b5c287b..ccf9ed4ff3 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -301,7 +301,9 @@ cordova.buildCordova = function (localPath, options) { var loaderCode = fs.readFileSync(loaderPath); fs.writeFileSync(path.join(wwwPath, 'meteor_cordova_loader.js'), loaderCode); - execFileSync('cordova', ['build'], { cwd: cordovaPath }); + // Give the buffer more space as the output of the build is really huge + execFileSync('cordova', ['build'], + { cwd: cordovaPath, maxBuffer: 2000*1024 }); }; // Start the simulator or physical device for a specific platform.