Skip to content

Commit

Permalink
Fix URL rebase (fixes mariocasciaro#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Oct 26, 2016
1 parent c417176 commit 5657c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function(destFile, options) {
}

var resourceAbsUrl = path.relative(commonBase, path.resolve(path.dirname(file), url));
resourceAbsUrl = path.relative(destDir, resourceAbsUrl);
resourceAbsUrl = path.relative(path.resolve(commonBase, destDir), path.resolve(commonBase, resourceAbsUrl));
//not all systems use forward slash as path separator
//this is required by urls.
if(path.sep === '\\'){
Expand Down

0 comments on commit 5657c0c

Please sign in to comment.