You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resolve-url-loader attempts to re-resolve urls in the output of less-loader according to the original .less file the url was in, even though less has already done that job. At least that's what I believe.
I think this must be a problem for other users of the life-saving craco-less?
Hello, sorry I'm not sure. I will see if other people find this issue and reply with some more thoughts. I think it should be fine to make this configurable
resolve-url-loader
attempts to re-resolve urls in the output ofless-loader
according to the original.less
file the url was in, even thoughless
has already done that job. At least that's what I believe.I think this must be a problem for other users of the life-saving
craco-less
?Versions
react-scripts: 3.4.1
less-loader: 5.0.0
@craco/craco: 5.6.4
craco-less: 1.16.0
Example
This is what our files looks like (a little bit):
css/main.less
:css/components/button.less
And then there's
img/button.svg
containing an SVG.Then when build with
npx craco build
we get this error:Resolution
I have been able to fix this by disabling the
resolve-url-loader
using this in mycraco.config.js
:Maybe this will work for other people!
Is this a broader issue with
craco-less
that should be incorporated intocraco-less
?The text was updated successfully, but these errors were encountered: