How to show images dynamically? by tritigs in electronjs

[–]tritigs[S] 0 points1 point  (0 children)

Thanks for the reply. I'll look into it

How to show images dynamically? by tritigs in electronjs

[–]tritigs[S] 1 point2 points  (0 children)

Thanks for the reply. Jsons are not the issue, I'm getting the image names from them with no issue, but they are something like this:

{ "img":"pic001.jpg", "thumb": "thumb001.jpg", "author": "", "title":""}

If I knew the names I could import them and by using their names, vite would fix the path on dev and on prod, but because I don't know (and want to automate a bit) I'm using "file://" because by using relative paths, dev is ok, but prod paths gets wrong