From 006584e40563eb307d2b992ebf3d20abc71ca71f Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 31 May 2017 15:05:56 -0400 Subject: [PATCH] fixes `[build] Unknown target:` error message --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9a84c15aa0..7fa94e3eaf 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -20,7 +20,7 @@ module.exports = function (grunt) { function update(action, filepath, target) { var updateArgs = args.slice(); - var compiling = ''; + var compiling; var time = Date.now(); if (target === 'lessUpdated_Client') { @@ -37,7 +37,7 @@ module.exports = function (grunt) { // Do nothing, just restart } - if (incomplete.indexOf(compiling) === -1) { + if (compiling && incomplete.indexOf(compiling) === -1) { incomplete.push(compiling); }