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
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
Huh? @ppoliani, what do you mean require it twice? I'm having issues with images loaded the same way as above. In my case it works in chrome but not firefox.
this is hella old but for anyone having the same problem as above, the issue is that the image is probably going through multiple loaders.
if you have a loader for pngs defined in your webpack config it'll go through that first, giving you the module.exports =
then when you shove it through the url loader inline, it encodes the module instead of the image.
adding a ! at the start of the require overrides any loaders defined in webpack
I try to load images in JavaScript code and then use the base64 string as the src of images.
But when I decode the above base64 string I get something like the following:
Why is the
module.exports
encoded as part of the image content?The text was updated successfully, but these errors were encountered: