Vite Image Optimizer
JSON →A Vite plugin for optimizing image assets (PNG, JPEG, GIF, TIFF, WebP, AVIF, SVG) at build time using Sharp.js and SVGO. Version 2.0.3 requires Node >=18.17.0, Vite >=5, SVGO >=4, and Sharp >=0.34.0. Provides lossless compression by default, with caching, filtering by test/include/exclude, public directory support, and detailed optimization stats logging. Differentiates from alternatives by combining Sharp and SVGO in one plugin without requiring imagemin or squoosh (which are unmaintained).