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
Working with static assets (images) in v3 #401
Comments
|
I'm stuck on this too. I've got about 100 SVGs in the |
|
@HoverBaum looking into this now @alpinegizmo When using |
|
I'll have to dig into this later, but tested using webpack to import an image with the CLI and that can be used as a workaround for now. The other advantage to using webpack is that it will throw an error when an image is missing, rather than causing a 404 in the browser. |
|
The webpack workaround appears to have the drawback that I have to restart the dev server every time I add an image. That's unacceptable; any way to make this dynamic? |
|
@alpinegizmo hmm, the restarting sounds like it might be a Gatsby issue, but I'll look into it |
|
Can confirm that the import way works but requires a reload of the dev server every time you add an image 😞 I published a minimal reproduction repo: https://github.com/HoverBaum/bug-mdx-deck-401 |
This comment has been minimized.
This comment has been minimized.
|
For me, putting images in a folder next to your <img src="./backlog-grooming" />Because this uses ...although this has the side effect of making it into a linked image, which is not always desirable in slides. That said, I am doing a bit of patching on |
Before I used my images as:
While keeping a top level
imagesfolder in my project and that worked fine. With the move to v3 this stopped working. I dug a bit into Gatsby and tried moving my images folder into astaticfolder, but that did not work.How can we use static resources, such as images?
Is there still a folder being served?
The text was updated successfully, but these errors were encountered: