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
In dev mode, it will base64 encode images until 10k and just do a path for images > 10k. Awesome.
But when I do npm run build, npm run prod it fails:
SyntaxError: /Users/rstudner/projects/react-router-redux-example/roger93.jpg: Unexpected character '�' (1:0)
> 1 | ����&
I'm guessing that in prod somehow it isn't either figuring out how to point to the image (or something).
Since you hadn't yet addressed an example of "local images" (versus the SideSidebar pointing at a remote image) I was wondering if you had any insight with how to do "local images".
To note, my image was just at the root of the project, so not inside of public. (hence the ../..)
The text was updated successfully, but these errors were encountered:
So I added the url-loader etc:
So in SiteSidebar.js if I do:
and then later:
In dev mode, it will base64 encode images until 10k and just do a path for images > 10k. Awesome.
But when I do npm run build, npm run prod it fails:
I'm guessing that in prod somehow it isn't either figuring out how to point to the image (or something).
Since you hadn't yet addressed an example of "local images" (versus the SideSidebar pointing at a remote image) I was wondering if you had any insight with how to do "local images".
To note, my image was just at the root of the project, so not inside of public. (hence the ../..)
The text was updated successfully, but these errors were encountered: