Skip to content

Commit

Permalink
Pass the original file to the rename plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jrpomeroy committed Jul 19, 2018
1 parent 5a1f34b commit d70ba0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -33,7 +33,7 @@ function gulpRename(obj, options) {

} else if (type === 'function') {

obj(parsedPath);
obj(parsedPath, file);
path = Path.join(parsedPath.dirname, parsedPath.basename + parsedPath.extname);

} else if (type === 'object' && obj !== undefined && obj !== null) {
Expand Down

0 comments on commit d70ba0a

Please sign in to comment.