It might also be me, but I found no documentation on how to configure sizes and placeholder in the docs.
It did not work, but
I expected to be able to use a preset to configure the params for a NuxtImage:
export default defineNuxtConfig({
modules: [
["@nuxt/image", {
quality: 60,
format: ['webp'],
presets: {
hero: {
sizes: {sm:'50vw', md:'100vw', lg:'150vw', xl:'400vw'},
placeholder: true,
modifiers: { // passed into the URI
quality: 70
}
}
}
}],
]
});
It might also be me, but I found no documentation on how to configure sizes and placeholder in the docs.
It did not work, but
I expected to be able to use a preset to configure the params for a
NuxtImage: