in Gulp, I have a glob pattern that I want to verify. For instance:
gulp.task('clean-requirejs', function() {
return gulp.src([
'./public/res-min/**/*.js'
])
.pipe(clean());
});
I want to see how the glob ['./public/res-min/**/*.js']
is expanded. How do I print the arguments/filelist which is generated by gulp.src
in this example?
UPDATE: Turns out there is a really simple gulp-print
which can solve the job like so:
var print = require('gulp-print').default;
[....]
.pipe(print());
Turns out Gulp-Debug is just right for situations like this.
Example: