diff --git a/Gruntfile.js b/Gruntfile.js index 547866bafd..9d2531c23b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -168,8 +168,22 @@ const configureGrunt = function (grunt) { } }, stderr: function (chunk) { - hasBuiltClient = true; - grunt.log.error(chunk); + const skipFilter = grunt.option('client') ? false : [ + /- building/ + ].some(function (regexp) { + return regexp.test(chunk); + }); + + const errorFilter = grunt.option('client') ? false : [ + /^>>/ + ].some(function (regexp) { + return regexp.test(chunk); + }); + + if (!skipFilter) { + hasBuiltClient = errorFilter ? hasBuiltClient : true; + grunt.log.error(chunk); + } } } },