Skip to content
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

enhancement: string as the default export if the preset only defines srcset #2

Closed
ElMassimo opened this issue Jan 13, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ElMassimo
Copy link
Owner

Description 📖

Currently the default export for preset imports is ImageSource[]. This allows presets to define additional source tags, with different formats, conditional widths and densities, etc.

For presets that define a single ImageSource that only contains srcsets, it would be convenient for the default export to be a string.

That would make it work out of the box in img and source tags in HTML and Vue SFCs, where src and srcset are already extracted as imports.

@ElMassimo ElMassimo added the enhancement New feature or request label Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant