NuxtImage: Custom Providers and duplicate srcset #1290
Unanswered
Phillocity
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm not sure if its a bug but srcset currently duplicates for me so if I've added a size of xs:360px it will return with a srcset that contains 360w and adds 720w. This can be seen here https://stackblitz.com/edit/nuxt-starter-jx7mvs?file=app.vue
These settings:

Will generate:

Is this by design or a bug? That aside I'm currently writing a custom provider and it works for singular src. But in the event of a srcsets is there anyway to handle this within the custom provider besides generating srcset with a computed on the template?
Beta Was this translation helpful? Give feedback.
All reactions