Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

How might one add alt text with a Nuxt project that uses local files? #41

Open
Mgrmjp opened this issue Oct 14, 2020 · 3 comments
Open

Comments

@Mgrmjp
Copy link

Mgrmjp commented Oct 14, 2020

Tried to add alt text but it is quite difficult and the thumbnails break for local files because you need "require".

images: [
require('../../assets/img/myimage.png')
]

I can't figure out how to use url with local files and have alt text in there. Any ideas are welcome. 😅

@TomBell95
Copy link

@Mgrmjp I hate to be that guy to message asking if you solved something from years ago.... but did you find a solution to the above? I have the exact same issue

I want to pass an array of images from data but cannot use require

@Mgrmjp
Copy link
Author

Mgrmjp commented Oct 22, 2022

@TomBell95 No worries for asking. 😀 I think I gave up since I didn't have any ideas or good enough knowledge of Vue/JS to work around the issue. I switched to a different package that worked a bit better and suited my needs.

@TomBell95
Copy link

TomBell95 commented Oct 22, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants