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

Source map paths behave badly on Win32 #300

Closed
ghost opened this issue Feb 26, 2014 · 2 comments
Closed

Source map paths behave badly on Win32 #300

ghost opened this issue Feb 26, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 26, 2014

Some example bad outputs in the source map for Windows:
../C:\foo\bar\baz.scss
../../../../../C:\foo\bar\baz.scss
../C:\foo\bar/qux.scss
C:\foo\bar/qux/quux.scss

When source_map_file and input_path are in the same directory, it does not output relative paths in the source map and instead uses mixed slashes as shown above.

Workaround: replace backslashes with forward slashes in both input_path and source_map_file.

I'd be OK with it using forward slashes as ultimately this will be served from a URL and forward slashes are appropriate for URLs, but it doesn't make the URL relative and that's an issue.

@am11
Copy link
Contributor

am11 commented Mar 29, 2014

Possible dup of #242. Even the JSON in sourcemap is invalid because \ is not escaped.

@HamptonMakes
Copy link
Member

This seems to be fixed over at #242

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

No branches or pull requests

2 participants