Skip to content

Fix serving index.html on Windows #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2016
Merged

Fix serving index.html on Windows #55

merged 1 commit into from
Jan 12, 2016

Conversation

jchv
Copy link
Contributor

@jchv jchv commented Dec 17, 2015

Hello. I would be grateful if you could check this out and hopefully merge it at your earliest convenience, as I make heavy use of webpack-dev-server, and this bug is actually quite difficult to work around if you rely on HTML5-style pushState routing.

Many thanks.

Fixes #54.

Using path.join for memory-fs leads to problems on Windows, because the
path module will be path.win32 instead of path.unix, which of course uses
backslash as the directory separator. We could explicitly import
path.posix, but since this same JS file already includes a generic
path.join that seems to work in enough cases for us, it seems OK to just
use that.
@bebraw
Copy link

bebraw commented Jan 9, 2016

Looks good to me. 👍

sokra added a commit that referenced this pull request Jan 12, 2016
Fix serving index.html on Windows
@sokra sokra merged commit 0afbe7e into webpack:master Jan 12, 2016
@sokra
Copy link
Member

sokra commented Jan 12, 2016

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants