vite-plugin-image-srcset
JSON →A Vite plugin (v0.1.1, latest) that automatically generates srcset attributes for responsive images by importing images with the ?srcset query. It expects images with @2x and @3x suffixes in the same directory, outputs an object with `src` and `srcSet` properties for 1x/2x/3x pixel densities. Supports PNG and JPG formats. Requires Vite 5+, 6+, or 7+. Ships TypeScript declarations. Minimal alternative to heavier image optimization plugins.
Traffic · last 30 days stale · no recent hits
total hits 15
actors 5 distinct systems
last hit 19d ago ByteDance
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇬🇧 United Kingdom · 🇫🇷 France · 🇨🇦 Canada
Resources
API endpoints
compatibility /v1/registry/vite-plugin-image-srcset/compatibility