mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Actually omit files that are specified. Fixes #11943
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
f3515b735e
commit
bc9945a6a4
4
grunt.js
4
grunt.js
@ -278,12 +278,14 @@ module.exports = function( grunt ) {
|
|||||||
this.file.src.forEach(function( filepath ) {
|
this.file.src.forEach(function( filepath ) {
|
||||||
var flag = filepath.flag,
|
var flag = filepath.flag,
|
||||||
specified = false,
|
specified = false,
|
||||||
|
omit = false,
|
||||||
message = "";
|
message = "";
|
||||||
|
|
||||||
if ( flag ) {
|
if ( flag ) {
|
||||||
if ( excluded[ flag ] !== undefined ) {
|
if ( excluded[ flag ] !== undefined ) {
|
||||||
message = ( "Excluding " + flag ).red;
|
message = ( "Excluding " + flag ).red;
|
||||||
specified = true;
|
specified = true;
|
||||||
|
omit = true;
|
||||||
} else {
|
} else {
|
||||||
message = ( "Including " + flag ).green;
|
message = ( "Including " + flag ).green;
|
||||||
|
|
||||||
@ -310,7 +312,9 @@ module.exports = function( grunt ) {
|
|||||||
filepath = filepath.src;
|
filepath = filepath.src;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !omit ) {
|
||||||
compiled += file.read( filepath );
|
compiled += file.read( filepath );
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Embed Date
|
// Embed Date
|
||||||
|
Loading…
Reference in New Issue
Block a user