Answer the question
In order to leave comments, you need to log in
What loader can you recommend for webpack 4, which can generate an image in different formats?
Hello.
I have a vue project with full ssr configured, spinning on webpack 4.
I am looking for some webpack loader to generate images from png \ jpeg to webp format and friendly to ssr
. Ideally, I want this:
And at the output (in Image) get an object with a description of pictures of different formats and different sizes I
tried these
1. flexis/srcset-loader
2. pwa-srcset-loader
But I can't get them to work. The first one cannot compile normally, the second one cannot compile the server ssr manifest with generated files normally import Image from '@/assets/photo.jpg';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question