nuxt-imager
v1.1.1
Published
nuxt image optimization package
Downloads
7
Readme
Nuxt Imager
An image optimization tool for nuxt2. It is not a standalone package, you have to use it along with nuxt image. It is only compatible with nuxt-image version 0.
Installation
npm i nuxt-imager
or
yarn add nuxt-imager`
Usage
Step-1: Add imager as custom image provider in your nuxt-image module options,
{
provider: 'imager',
providers: {
imager: {
provider: 'nuxt-imager/dist/imageProvider',
}
}
}
Step-2: Add following lines to nuxt server middleware block
{
serverMiddleware: [
'nuxt-imager/dist/index',
'...',
'....'
]
}