Skip to content

Commit bc9945a

Browse files
committed
Actually omit files that are specified. Fixes #11943
Signed-off-by: Rick Waldron <[email protected]>
1 parent f3515b7 commit bc9945a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

grunt.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,14 @@ module.exports = function( grunt ) {
278278
this.file.src.forEach(function( filepath ) {
279279
var flag = filepath.flag,
280280
specified = false,
281+
omit = false,
281282
message = "";
282283

283284
if ( flag ) {
284285
if ( excluded[ flag ] !== undefined ) {
285286
message = ( "Excluding " + flag ).red;
286287
specified = true;
288+
omit = true;
287289
} else {
288290
message = ( "Including " + flag ).green;
289291

@@ -310,7 +312,9 @@ module.exports = function( grunt ) {
310312
filepath = filepath.src;
311313
}
312314

313-
compiled += file.read( filepath );
315+
if ( !omit ) {
316+
compiled += file.read( filepath );
317+
}
314318
});
315319

316320
// Embed Date

0 commit comments

Comments
 (0)