How to add current source filename to gulp-header
问题 I minify and concatinate vendor files. It would be nice to separate the scripts in vendor.min.js with some info (like the original filename). I am using gulp-header to add a headers to my output file. // Minify vendor JS gulp.task('minify-vendor-js', function() { return gulp.src([ 'lib/**/*.js' ]) .pipe(uglify()) .on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); }) .pipe(header("// Vendor Package (compressed) - all rights reserved to the respective owners\r