update eleventyImageTransformPlugin settings
This commit is contained in:
parent
5b671a6f8b
commit
52647b0d29
1 changed files with 3 additions and 5 deletions
|
|
@ -55,15 +55,13 @@ export default async function (eleventyConfig) {
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addPlugin(plugins.eleventyImageTransformPlugin, {
|
eleventyConfig.addPlugin(plugins.eleventyImageTransformPlugin, {
|
||||||
formats: ['avif', 'webp', 'jpeg'],
|
formats: ['webp', 'jpeg'],
|
||||||
extensions: 'html',
|
|
||||||
outputDir: '/assets/img/',
|
|
||||||
widths: [650, 960, 1200],
|
widths: [650, 960, 1200],
|
||||||
extensions: 'html',
|
|
||||||
htmlOptions: {
|
htmlOptions: {
|
||||||
imgAttributes: {
|
imgAttributes: {
|
||||||
loading: 'lazy',
|
loading: 'lazy',
|
||||||
decoding: 'async'
|
decoding: 'async',
|
||||||
|
sizes: '100vw'
|
||||||
},
|
},
|
||||||
pictureAttributes: {}
|
pictureAttributes: {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue