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
resolve-url-loader not working properly with webpack 4 and dart-sass #122
Comments
I'm having similar issues...
I'm referencing
|
I am not familiar with |
@bholloway Not sure when I will have time to provide a repo but basically
|
@bholloway Found some time to create a repo for sharing a simple reproduction case and it seems Afaik I was wondering how |
Thanks @thasmo I will try to take a look soon |
I added In
When
When
I have not looked deeper to see if there are some necessary options that are not being passed through to the implementation. |
ahum. So this is a problem from dart-sass? Shouldn't we file a issue then? |
This seems to have since been fixed somewhere upstream. If I rerun @thasmo repo for sharing a simple reproduction case then it now works. Here is my debug output now
Given the order of sourcemap sources I suspect it was fixed by this sass-loader PR from May 8. @thasmo can you please confirm so that we can close out this issue and sass/dart-sass#819. |
Tested with my reproduction case (although the case seems to actually have never worked due to a missing loader configuration for the image 🤔) and another test-project and so far this really seems to work now. Thanks for your time and effort looking into it and informing about the fix. 👍 Awesome! |
A heads up: This seems to be a problem with again with sass-loader 8.0.0, which was recently released. We had weird issues with relative paths suddenly, until we rolled back to 7.x. |
I'm getting this problem now with sass-loader 8.x, and adding adjust-sourcemap-loader doesn't help this time. Should the issue be handled here or with sass-loader? |
First time using
resolve-url-loader
and I think something's not working correctly when usingresolve-url-loader
with webpack 4 anddart-sass
.When enabling the
debug
option,resolve-url-loader
prints this:I'm not sure why the font file can't be found, but relative from the
main.scss
file, the location of the font file is../../fonts/avenir-400.woff
.My stylesheet-related webpack config part looks basically like this:
The text was updated successfully, but these errors were encountered: