-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Open
Labels
enhancementNew feature or requestNew feature or requestfeat: cssp3-downstream-blockerBlocking the downstream ecosystem to work properly (priority)Blocking the downstream ecosystem to work properly (priority)
Description
Description
vite-imagetools transforms images to more efficient file formats. This works great for images included via an import in the JS. However, Vite's url() references are only being half handled today. Vite's static asset handling does rename these assets to have a hash in their name. But the vite-imagetools plugin is never invoked, so we can't do think like change jpg/png images to webp.
Suggested solution
Invoke Vite plugins on asset URLs found in CSS just as is done for asset URLs found in JS
Alternative
No response
Additional context
This is one of the top feature requests in vite-imagetools: JonasKruckenberg/imagetools#563
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfeat: cssp3-downstream-blockerBlocking the downstream ecosystem to work properly (priority)Blocking the downstream ecosystem to work properly (priority)