-
Notifications
You must be signed in to change notification settings - Fork 322
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 generation on Windows uses back slash instead of forward slash #487
Comments
IIRC this is an upstream issue with We've had this issue in other modules like grunt-contrib-concat. gruntjs/grunt-contrib-concat#117 |
jakubpawlowicz
added a commit
that referenced
this issue
Apr 13, 2015
Apparently there's a bug in `source-map` library which does not normalize paths in `source` field to proper URL format. Thus source maps generated on Windows have backslashes instead of forward slashes. We correct it manually to get same output on all platforms.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Noticed this while making #484
Source map sources are URLs, so even on Windows they should be using forward slashes.
If a source is
folder\file.css
, Chrome will display it literallyfolder\file.css
, and not inside it's own folder in the tree, so the way it's currently done usingpath
is wrong.I think the easiest way to fix this is simply by replacing \ with / on Windows.
The text was updated successfully, but these errors were encountered: