Modern Images
Converts images to modern formats (WebP, AVIF) with responsive srcset, disk caching, and LCP preload support.
Plugin
Modern Images
Converts images to modern formats (WebP, AVIF) with responsive srcset, disk caching, and LCP preload support.
Converts images to modern formats (WebP, AVIF) with responsive srcset, disk caching, and LCP preload support.
Installation
Install the package from npm:
npm install emdash-plugin-modern-images
Register the plugin in your Astro config:
import { modernImagesPlugin } from "emdash-plugin-modern-images";
export default defineConfig({
integrations: [
emdash({
plugins: [modernImagesPlugin()],
}),
],
});
Details
- Latest version: 1.3.0
- License: MIT
- Publisher: Adriano Amalfi
- Requires: EmDash
^0.12.0 - Source repository: https://github.com/adrianoamalfi/emdash-plugin-modern-images
- npm package: emdash-plugin-modern-images