{"library":"vite-plugin-webp","type":"library","category":null,"description":"A Vite plugin that converts JPEG, PNG, GIF, and AVIF images to WebP format during the build process, using the sharp library for high-performance conversion. Version 1.1.3 is the latest stable release. It supports CSS background images (with a fallback class-based approach) and JS image imports with clip (dimension-based) transformations. Key differentiator: automatic inline conversion in CSS and JS without manual WebP management, plus image clipping via filename dimensions.","language":"javascript","status":"active","version":"1.1.3","tags":["javascript","vite-plugin-webp","webp","clip","vite","sharp"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-webp","imports":["import webp from 'vite-plugin-webp'","const webp = require('vite-plugin-webp')","import webp from 'vite-plugin-webp';\nimport { defineConfig } from 'vite';\nexport default defineConfig({ plugins: [webp()] })"]},{"cmd":"yarn add vite-plugin-webp","imports":[]},{"cmd":"pnpm add vite-plugin-webp","imports":[]}],"homepage":null,"github":"https://github.com/luchuanqi/vite-plugin-webp","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-webp","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}