From 99ac20788e67605584efb166ff302f601ad840af Mon Sep 17 00:00:00 2001 From: AitorC Date: Wed, 2 Sep 2015 16:30:21 +0200 Subject: [PATCH] Added the option to skip failOnLimit when "--force" is used --- tasks/bless.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/bless.js b/tasks/bless.js index 7ec9576..6b916aa 100644 --- a/tasks/bless.js +++ b/tasks/bless.js @@ -83,7 +83,7 @@ module.exports = function(grunt) { if (overLimit) { grunt.log.errorlns(overLimitErrorMessage); - if (options.failOnLimit) { + if (options.failOnLimit && !options.force) { throw grunt.util.error(chalk.stripColor(overLimitErrorMessage)); } } else if (options.logCount !== 'warn') {