diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2012-06-20 20:39:22 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-06-20 20:39:22 -0400 |
commit | bc9945a6a466e3431260615c2e663ca8848095e7 (patch) | |
tree | c72bd0d40ba8991094a7837fc0f99a34e613a4eb | |
parent | f3515b735e4ee00bb686922b2e1565934da845f8 (diff) | |
download | jquery-bc9945a6a466e3431260615c2e663ca8848095e7.tar.gz jquery-bc9945a6a466e3431260615c2e663ca8848095e7.zip |
Actually omit files that are specified. Fixes #11943
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
-rw-r--r-- | grunt.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -278,12 +278,14 @@ module.exports = function( grunt ) { this.file.src.forEach(function( filepath ) { var flag = filepath.flag, specified = false, + omit = false, message = ""; if ( flag ) { if ( excluded[ flag ] !== undefined ) { message = ( "Excluding " + flag ).red; specified = true; + omit = true; } else { message = ( "Including " + flag ).green; @@ -310,7 +312,9 @@ module.exports = function( grunt ) { filepath = filepath.src; } - compiled += file.read( filepath ); + if ( !omit ) { + compiled += file.read( filepath ); + } }); // Embed Date |