I have a component called ImageLoaderUtil which I'm using to convert raw images to webp and also place lqip placeholders. But I get huge page sizes when Next.js builds the site.
ImageLoaderUtil.jsx Component
Size of the Page with webp and lqip loaders when Next.js builds the site.
Size of the Page when I removed webp and lqip loaders
I have a component called ImageLoaderUtil which I'm using to convert raw images to webp and also place lqip placeholders. But I get huge page sizes when Next.js builds the site.
ImageLoaderUtil.jsx Component
Size of the Page with webp and lqip loaders when Next.js builds the site.
Size of the Page when I removed webp and lqip loaders
Can someone suggest to me a better solution? 🙂