Closed jenwachter closed 9 years ago
Seems like the Travis CI build fail is an nvm error, which seems strange for this kind of PR:
The command "nvm use 0.9" failed and exited with 1 during setup.
FYI: this pull request duplicates the functionality, but accomplishes it in a different way: https://github.com/hparra/gulp-rename/pull/19
Sorry, looks weird API for me.
Why Having a reference to the original file can aid in determining what each particular file in a glob should be renamed to. For example, renaming a file based on a hash of its contents for cache busting.
What I did I added a
file
property to thepath
object passed into the rename function. This property is not used to alter the file in any way -- it is only there for reference.