aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2012-06-20 20:39:22 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-06-20 20:39:22 -0400
commitbc9945a6a466e3431260615c2e663ca8848095e7 (patch)
treec72bd0d40ba8991094a7837fc0f99a34e613a4eb
parentf3515b735e4ee00bb686922b2e1565934da845f8 (diff)
downloadjquery-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.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/grunt.js b/grunt.js
index ddd81becf..78f1ac52e 100644
--- a/grunt.js
+++ b/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