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, {
|
||||
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: {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue