From 5f87d8dc31b8a121667b1658622452da1a14313a Mon Sep 17 00:00:00 2001 From: Chawye Hsu Date: Tue, 21 Jan 2025 18:05:52 +0800 Subject: [PATCH] feat(plugin-image): enable breakpoints config Signed-off-by: Chawye Hsu --- saber-config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/saber-config.js b/saber-config.js index e804e0e58..a3ab6e8b0 100644 --- a/saber-config.js +++ b/saber-config.js @@ -125,7 +125,11 @@ module.exports = { adapter: 'sharp', format: 'webp', /* sizes => image widths, from small to large */ - sizes: [720, 1200, 1920], + /* 740: for media width <= 768 */ + /* 1200: for media width > 768 */ + /* 1920: and set the max image width we provide */ + sizes: [740, 1200, 1920], + breakpoints: [768, 1920], placeholder: true, blendIn: false, },