From 52647b0d296461e8727465f69840fc576fc02cbb Mon Sep 17 00:00:00 2001 From: madrilene Date: Thu, 9 Jan 2025 17:31:39 +0100 Subject: [PATCH] update eleventyImageTransformPlugin settings --- eleventy.config.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/eleventy.config.js b/eleventy.config.js index fed2df4..1bae091 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -55,15 +55,13 @@ export default async function (eleventyConfig) { }); eleventyConfig.addPlugin(plugins.eleventyImageTransformPlugin, { - formats: ['avif', 'webp', 'jpeg'], - extensions: 'html', - outputDir: '/assets/img/', + formats: ['webp', 'jpeg'], widths: [650, 960, 1200], - extensions: 'html', htmlOptions: { imgAttributes: { loading: 'lazy', - decoding: 'async' + decoding: 'async', + sizes: '100vw' }, pictureAttributes: {} }