Closed bdecarne closed 8 years ago
I actually have never seen this before... Are you certain this worked in 1.x?
gulp-include
uses straight up glob
, so anything glob
can do, we can do.
For this specific situation, you could use something like
//=include !(app.js)
Hi,
Yes, it worked on 1.x.
Look at this code extracted from the 1.1.1 version (https://github.com/wiledal/gulp-include/blob/3b174d93ea8caf69dacd6562c055d0090b435719/index.js#L99-L110) :
if (relativeFilePath.charAt(0) === '[') {
relativeFilePath = eval(relativeFilePath);
for (var i = 0; i < relativeFilePath.length; i++) {
if (relativeFilePath[i].charAt(0) === '!') {
negations.push(relativeFilePath[i].slice(1))
} else {
globs.push(relativeFilePath[i]);
}
}
} else {
globs.push(relativeFilePath);
}
Blaise
Hi,
First i love your library, i use it in all my angular projects.
With the version 2.x it seems that arrays doesnt work anymore :
Can you confirm ? I would be sad...