From 10d43a974b352d70bef04fc1089088369bbb3941 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Wed, 22 Oct 2014 20:06:46 -0700 Subject: [PATCH] Skip the whole build if there is nothing to build for --- tools/commands-cordova.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index fb3aac75c8..7b36764bb7 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -720,6 +720,8 @@ var pluginsConfiguration = {}; // Build a Cordova project, creating a Cordova project if necessary. var buildCordova = function (localPath, platforms, options) { verboseLog('Building the cordova build project'); + if (_.isEmpty(platforms)) + return; buildmessage.enterJob({ title: 'Building for mobile devices' }, function () { var bundlePath = path.join(localPath, 'build-cordova-temp');