-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
Description
Clear and concise description of the problem
In vanilla template, html file vite automatically resolves the src
attribute of the img
tag and other attributes. But what if my project has lazy-loading for images. I should write, for example, data-src
attribute in the img
tag. But vite doesn't understand, that this is a file's url, it doesn't resolve it, and doesn't put it into dist folder.
Suggested solution
Make some plugin or option, like webpack html-loader. It can "...specify which tags and attributes to process, filter them, filter urls and process sources starts with /".
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
bechir, libin1991, NicolasReibnitz, Yrobot, T-Damer and 10 more