Skip to content
Permalink
Browse files

Actually omit files that are specified. Fixes #11943

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
rwaldron committed Jun 21, 2012
1 parent f3515b7 commit bc9945a6a466e3431260615c2e663ca8848095e7
Showing with 5 additions and 1 deletion.
  1. +5 −1 grunt.js
@@ -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

0 comments on commit bc9945a

Please sign in to comment.
You can’t perform that action at this time.