hparra / gulp-rename

Rename files easily
MIT License
692 stars 73 forks source link

gulp rename with multiple src globs #49

Closed dabbank closed 9 years ago

dabbank commented 9 years ago

Hi,

using 1.2.2 and windows 7

gulp.src(["file1.js", "file2.js", "file3.js"]) .pipe(rename("all.js"))

will not work. Not all files will be included.

without rename, it will create all files, but in separate files.

Does rename only work with single file ?

shinnn commented 9 years ago

Not all files will be included.

That is an expected behavior. Because all the files are renamed to exactly the same name, the previously passed files are overwritten and gulp.dest writes only the last file to the destination folder.

without rename, it will create all files, but in separate files.

Yes, that's also an expected behavior. gulp.dest doesn't concatenate multiple files.

Does rename only work with single file ?

No. gulp-rename can rename multiple files.


Probably gulp-concat meets your requirements.