Fix #249: fix links.toAbsolute on windows

This commit is contained in:
Samy Pessé
2014-05-23 21:10:58 +02:00
parent 47fdd73791
commit c0f68c45e2
+4
View File
@@ -19,6 +19,10 @@ var toAbsolute = function(_href, dir, outdir) {
// make it relative to output
_href = path.relative(outdir, _href);
if (process.platform === 'win32') {
_href = _href.replace(/\\/g, '/');
}
return _href;
};