-
Notifications
You must be signed in to change notification settings - Fork 71
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
Webpack 4 Configuration not working - Request for Documentation #85
Comments
@jamesopti the If so maybe postcss/postcss-url might be more suited, although I have not taken a deep look at your use case. EDIT: Don't let me put you off. I am more than happy to work though |
@bholloway maybe your answer doesn't properly answer the question? |
Please refer to #97 as version 3 as docs have been updated. Hopefully some the options are more sensible now. @jamesopti use-case is root-relative url(). The The updated
@davidpelayo I hope I have addressed the problem in version 3. I encourage you to look at #97 and try the new alpha. Certainly I value any feedback you can give in #97. |
With the recent release of RE: https://github.com/jamesopti/webpack_playground/tree/resolve_url_loader_issue The options in The revised I also suggest that this is better handled by some url rebase and not However if you really want to use
This produces css and the required image in the
However to reiterate - this is case is fully relative URI, whereas It is co-incidental (and not intentional) that |
Minimally reproducible setup here: https://github.com/jamesopti/webpack_playground/tree/resolve_url_loader_issue
Hi! Excited to use this loader, but I'm having a heck of a time getting it to work with webpack 4.
I have a bunch of images in
/static/img/**
which are referenced in my SCSS like:Which is ending up in my css as exactly the same thing
When I run the following configuration through webpack, I see that resolve loader is finding the right
url()
and its path, but debug mode is saying NOT FOUND.Is there some output config thats not correct? I read through #79 but couldnt figure out what to do with the
rootContext
settingMy end goal is for file-loader to transform them to the /dist hashed version:
// Webpack rules config
The text was updated successfully, but these errors were encountered: