Skip to content

Commit

Permalink
feat(plugin-image): enable breakpoints config
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Jan 21, 2025
1 parent 57af993 commit 5f87d8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion saber-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 5f87d8d

Please sign in to comment.