An esbuild plugin for compressing resolved images using libSquoosh
npm i -D esbuild-squoosh
import esbuild from 'esbuild'
import squoosh from 'esbuild-squoosh'
import squooshConfig from './config/squoosh.config.js'
esbuild.build({
plugins: [
squoosh(squooshConfig)
]
})
If this PostCSS plugin helped you in any way please consider buying me a book @ my buymeacoffee.com page
- Include tests