Skip to content
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

Fix relative paths on Windows #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbsulli
Copy link

@jbsulli jbsulli commented Nov 20, 2017

Stepping through the code, the issue comes from glob returning filepaths with forward slashes while everything else returns Windows-style backslashes. Normally, node is pretty good at handling these differences but someone was trying to just do a quick string replace instead of using path.relative().

@jbsulli
Copy link
Author

jbsulli commented Nov 20, 2017

This is similar to this pull request... just without an added dependency and using Node's path module.

@dancingfrog
Copy link

dancingfrog commented Feb 18, 2018

Awesome! At the moment I've had to add additional tasks to my webpack config in order to work around problems with squarespace assemble, which simply won't run successfully on my Windows machine. The fix from this pull request would make a big difference to my work flow!

georgezzhang added a commit that referenced this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants