Skip to content

Commit

Permalink
Pull request for issue sindresorhus#150
Browse files Browse the repository at this point in the history
  • Loading branch information
smoliakov committed Feb 2, 2016
1 parent 5c5c707 commit cf59c9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ plugin.manifest = function (pth, opts) {
cb();
return;
}

var base = opts.base || file.base;

var revisionedFile = relPath(file.base, file.path);
var revisionedFile = relPath(base, file.path);
var originalFile = path.join(path.dirname(revisionedFile), path.basename(file.revOrigPath)).replace(/\\/g, '/');

manifest[originalFile] = revisionedFile;
Expand Down

0 comments on commit cf59c9e

Please sign in to comment.