Skip to content

Commit

Permalink
Changed Windows workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Dec 19, 2018
1 parent ef2968b commit d0f1f4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export default function rebase(options = {}) {
let root = null

function rootRelative(file) {
return path.relative(root, file)
// Last sequence is for Windows support
return path.relative(root, file).replace("\\", "/")
}

return {
Expand Down
2 changes: 0 additions & 2 deletions test/css-asset-verbose/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ function formatConsoleMock(fn) {
return entry.join(" ")
})
.join("\n")
// Windows support
.replace("\\\\", "/")
}

test("CSS Asset Verbose", async () => {
Expand Down

0 comments on commit d0f1f4b

Please sign in to comment.