-
-
Notifications
You must be signed in to change notification settings - Fork 431
sass-loader creating broken paths in sourcemap #460
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
Comments
@Stephen2 webpack-contrib/css-loader#532
|
Thanks @michael-ciniawsky, I've been playing with kinds of combinations, but the basic one that seems sensible is:
So if I understand this right, this is a known issue and the fix seems to be close to accepted. If that's not correct, let me know, and thanks again for helping. |
It's on Feedback would be appreciated 😛 |
Installed css-loader 0.28.2 and now I'm getting different behaviour, but I'm not sure which combination of my initial testing being at 2AM, the new change, mistakes in my testing?? etc... Here's the behaviour:
So, now I'm suggesting that it's only the presence of postcss loader that is causing this problem to still be present. Don't know if that helps or has just confused everything... |
Just to clearify, you mean with
No no the opposite 🙃 , it's appreciated, could you post some info on what is off, when |
I see now, likely need to remove the |
@michael-ciniawsky any progress on this? I'm running into the same issue |
And me too. Why do we have absolute path not relative in the source map? |
@katzz0 no, seems your configuration invalid, can your show configuration? |
This is my configuration of loaders for scss:
And versions: And as result I have files routes like C:\...C:\...C:\... which seems wrong. I'd like to have relative paths. I also tried |
@katzz0 seems
|
But it's specified in the documentation for sass-loader that it properly processes url in styles and needed for sass loader. I'll try without it and let know about results. |
@katzz0 At the time of writing it was not abandoned, now there is no alternative, so he stayed in README. I don't use |
I tested without What can I do to force using relative routes to my source files not absolute? It specifies relative paths like |
@katzz0 The relevant lines are here, could you comment them out in your local version of |
I tried to comment lines but it doesn't change anything. I tryed to walk through the process of modification source maps and it seems that css-loader adds additional part see here. |
|
I solved it like this :
added |
I'm embarrassed. I have this issue for a long time. I have path C:...C:...C:... like @katzz0. I waiting for someone fix this but i dont se results. I read a lot of threats about this issue and @michael-ciniawsky pretends that nothing is happening ;/ |
I have moved away using sass loader to styled-components for react and vue scoped styles. If only I had the enough knowledge would love to contribute but too late already |
Hey all, I managed to get this to work finally via the following workaround
Note the file, and making it absolute are both important in this case. |
@kyle-ssg invalid solution, you break source map in many cases |
Right now it's broken anyway, in all cases, unless I'm missing something? And anyway, I did say it was a workaround. |
@kyle-ssg what is broken? Issue was closed because it was fixed |
@evilebottnawi gotcha, I'll open a new issue and reference this here. |
Hey all, I'm stumped, can anyone help? Sourcemaps are pointing at broken paths

See how it's doubling up the paths, some with forward slash, some with backslash? I'm on Windows...
When I replace sass-loader with just css-loader, or even post-css-loader + css-loader, sourcemaps work, so that's why I think it's sass-loader
Not sure what else will be helpful, so here's the full webpack config:
The text was updated successfully, but these errors were encountered: