Skip to content

Commit

Permalink
Return path in rename by function example
Browse files Browse the repository at this point in the history
At least the only way I got renaming by function to work is by adding `return path;` to the function.
  • Loading branch information
Florian Eckerstorfer committed Sep 25, 2015
1 parent 7db2069 commit 6cf0627
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -24,7 +24,8 @@ gulp.src("./src/**/hello.txt")
.pipe(rename(function (path) {
path.dirname += "/ciao";
path.basename += "-goodbye";
path.extname = ".md"
path.extname = ".md";
return path;
}))
.pipe(gulp.dest("./dist")); // ./dist/main/text/ciao/hello-goodbye.md

Expand Down

0 comments on commit 6cf0627

Please sign in to comment.