-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
feat(gatsby-plugin-image): Add helper function to grab src #28463
Conversation
Might be worth noting (or changing) the fact that if the only format is webp, there is no src just a srcset. As there is no browser that supports webp but not picture elements, we don't bother with the fallback for them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
Hmm, is there a scenario where we only produce webp? I thought that was always extra. |
If they specify |
The path to get the src of an image is quite long. Adding a helper function makes this a better DX.