vite-plugin-image-srcset

JSON →
library 0.1.1 ·javascript
verified Apr 27, 2026

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.

total hits 10
actors 2 distinct systems
last hit 6d ago human
GPTBot
5
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany