Skip to content

Commit

Permalink
Fix directory name render issue when running on Windows (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
disquisition authored and leo committed Jan 23, 2017
1 parent 35157b8 commit d780f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = async (port, current, dir, ignoredFiles) => {
}

const directory = path.join(path.basename(current), subPath, '/')
const pathParts = directory.split('/')
const pathParts = directory.split(path.sep)

if (dir.indexOf(current + '/') > -1) {
const directoryPath = [...pathParts]
Expand Down

0 comments on commit d780f23

Please sign in to comment.