You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually not a bug, however this has taken several days of my time to find it work.
This could be used to update your docs for people who are trying to match files/folders with square brackets in their names.
// MAC / LINUX OS
function minifyJs() {
return gulp.src('resources/\\[testFolder\\]/**/*.js') // note the \\[name\\] escape here
.pipe(minify({ noSource: true }))
.pipe(gulp.dest('resources/[testFolder]')) // this is working for both
}
// WINDOWS 10
function minifyJs() {
return gulp.src('resources/[[]testFolder]/**/*.js') // note [[]name] escape here
.pipe(minify({ noSource: true }))
.pipe(gulp.dest('resources/[testFolder]')) // this is working for both
}
Hello, yes, I am using the latest versions of gulp, node, npx
Windows 10
Gulp CLI version: 2.2.0
Gulp Local version: 4.0.2
Node: v10.16.0
And it still didn't work for me. This is the reason I created this because I believe there's another fan of gulp who could meet this problem and it isn't documented.
This is actually not a bug, however this has taken several days of my time to find it work.
This could be used to update your docs for people who are trying to match files/folders with square brackets in their names.
My original article in stack-overflow:
https://stackoverflow.com/questions/61442043/gulp-src-match-folder-with-square-brackets/61443677?noredirect=1#comment108764225_61443677
The text was updated successfully, but these errors were encountered: