Comparing version 0.4.4 to 0.4.5
@@ -251,3 +251,4 @@ 'use strict'; | ||
function url(file, baseUrl) { | ||
return baseUrl + '/' + path.dirname(file.relative).replace(/^\.\//, '') + '/'; | ||
var dirname = path.dirname(file.relative).replace(/\\/g, '/'); | ||
return baseUrl + '/' + dirname.replace(/^\.\//, '') + '/'; | ||
} | ||
@@ -254,0 +255,0 @@ |
{ | ||
"name": "gulp-ssg", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/paulwib/gulp-ssg", |
@@ -53,3 +53,3 @@ 'use strict'; | ||
newFilePath.should.equal(expectedFilePath); | ||
file.relative.should.equal('hello/index.html'); | ||
file.relative.should.equal(path.normalize('hello/index.html')); | ||
Buffer.isBuffer(file.contents).should.equal(true); | ||
@@ -56,0 +56,0 @@ done(); |
39865
760