Commit bc9945a6 authored by Rick Waldron's avatar Rick Waldron

Actually omit files that are specified. Fixes #11943

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent f3515b73
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment