New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable match on a per-directory basis #53
Comments
I also came up with a strange combo with main-bower-files 2.11.0. main-bower-files + gulp-filter = not working
main-bower-files + basedir + gulp-filter = working
main-bower-files with filter = working
simple gulp.src + gulp-filter = working
|
@kewwwa That's definitely odd; I remember encountering the same issues while toying around with my gulpfile, but I couldn't quite figure out where the inconsistency stemmed from. My hypothesis as to what's causing the issue at hand is that, when sourcing In your case, it seems that |
+1 ... Here is my code :
and its output :
|
@noelmace Where does |
Another thing that i noticed, was the filter has forward slashes, while the output of modJsFiles has backward slashes. Depending on your operating system this could cause a mismatch |
Sample gulpfile:
Output:
I'm not quite sure as to what's causing this issue; whether it has to do with
streamfilter
,multimatch
orminimatch
, non-glob patterns are clearly not being applied correctly.Related issue: #52
Upon further analysis, I have come to the conclusion that this really only has to do with the way Gulp
handles streamsworks (as opposed to actually being a bug; see gulpjs/gulp#699).All things considered, I ended up setting the base directory to
./
to keep it from interpreting thebuild
directory as the base:gulp.src('./build/css/**/*.css', { base: './' })
It could be a good idea to include a similar example in the
README.md
so to help out other users facing this issue.The text was updated successfully, but these errors were encountered: