Modern Images
將圖片轉換為 WebP、AVIF 等現代格式,支援響應式 srcset、磁碟快取和 LCP 預載入。
外掛
Modern Images
將圖片轉換為 WebP、AVIF 等現代格式,支援響應式 srcset、磁碟快取和 LCP 預載入。
將圖片轉換為 WebP、AVIF 等現代格式,支援響應式 srcset、磁碟快取和 LCP 預載入。
安裝
從 npm 安裝此套件:
npm install emdash-plugin-modern-images
在 Astro 設定中註冊此外掛:
import { modernImagesPlugin } from "emdash-plugin-modern-images";
export default defineConfig({
integrations: [
emdash({
plugins: [modernImagesPlugin()],
}),
],
});
詳細資訊
- 最新版本: 1.3.0
- 授權條款: MIT
- 發布者: Adriano Amalfi
- 需求: EmDash
^0.12.0 - 原始碼儲存庫: https://github.com/adrianoamalfi/emdash-plugin-modern-images
- npm 套件: emdash-plugin-modern-images