I was under the impression and also from looking at the code that the a positive glob would only be restricted by negative globs that come AFTER IT.
So how comes that
gulp.src([
'../WebContent/g/css/ng-client.css'
],{base: '../WebContent'}).pipe(using())
results in ng-client.css
being listed.
While
gulp.src([
'!../WebContent/g/css/*',
'../WebContent/g/css/ng-client.css'
],{base: '../WebContent'}).pipe(using())
does not list the same file?
I want to figure out what is wrong with the way I am thinking of those glob streams that is causing me to expect the second code block to return the file as well - not a solution to how to overcome this scenario, I have seen suggestions like the one In: Glob / minimatch: how to gulp.src() everything, then exclude folder but keep one file in it
and I know that I can do something similar like:
gulp.src([
'!../WebContent/g/css/!(ng-client.css)',
'../WebContent/g/css/ng-client.css'
],{base: '../WebContent'}).pipe(using())
The Q is why doesn't the second return the file as I expect it to?