Open BananaAcid opened 8 months ago
same here, format, alias is also not working from nuxt.config.ts , however format works directly using prop!
image: {
quality: 80,
format: ['avif', 'webp'],
domains: ['example.org'],
alias: {
example: 'https://example.org'
}
}
It looks like issue #734 already exists asking about support for sizes
in presets
and whether it's a documentation issue or if it's not currently supported (and thus a feature request).
Perhaps this could be merged into the existing issue with the addition of the question around placeholder
in the same context?
Since this seems like a "won't fix" issue ... I coded a solution for myself that wraps NuxtImg to make it configurable from the nuxt.config.ts with all options.
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
: