q-markdown images location
I am using
q-markdownto create a user guide.
When adding images this way:
I get this error:
mainpage.jpg:1 GET http://localhost:8080/assets/screenshots/mainpage.jpg 404 (Not Found)
But when I move it to
staticsfolder, it works:
From this page (https://forum.quasar-framework.org/topic/4277/problem-assets-resources-404-not-found/8), I understand:
assetsfolder is managed by webpack so it ‘bundles’ the images
staticsis just directly copied
But is this also applicable when I am just running the app directly and not the packaged app?
Also, if that is the case, why is this working if I am calling this outside the markdown file?
<img src="../assets/screenshots/mainpage.jpg" width="200"><br/>
So… Is there any other way to import images without having to put them in the
staticsfolder? I have a different folder structure and prefer NOT to put my images in the
Hawkeye64 last edited by
@keechan Hmmm, I usually put my images in the
staticsfolder, because I don’t need them managed (versioned and loaded by webpack as a resource).
You can add this as an issue where I will get around to testing it.
On a side note, why would you not want your images in statics?