Skip to content

Commit

Permalink
fix(gatsby-source-filesystem): Use forward slashes on relative… (gats…
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst authored and sidharthachatterjee committed Aug 24, 2019
1 parent 992f572 commit 0cf4c5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/create-file-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ exports.createFileNode = async (
...parsedSlashed,
absolutePath: slashed,
// Useful for limiting graphql query with certain parent directory
relativeDirectory: path.relative(
pluginOptions.path || process.cwd(),
parsedSlashed.dir
relativeDirectory: slash(
path.relative(pluginOptions.path || process.cwd(), parsedSlashed.dir)
),
}

Expand Down

0 comments on commit 0cf4c5b

Please sign in to comment.