Using gulp I would like to have all matched files from gulp.src() in a variable.
I don't want to move files to dist I just want retrieve pattern matched files in a variable.
Something like this:
var files = gulp.src(['build/**/*.js', 'build/**/*.css']).pipe(<maybe-some-plugin-here>);
Where variable files would be an array of matched files.
I have tried using gulp-filenames but it doesn't work, just returns empty array.
Is there a, preferably simple, way to do accomplish this?