WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster.
How to use ?
For compress your jpg and png to webp formate is very easy just follow this step.
1. Copy image from folder src/img/your-folder/
2. Compress your images in compress site like https://tinyjpg.com/
3. After compress complete, paste your images in dist/img/your-folder/
Yeahh, your site now use optimized images
Note: WebP formate maybe can't open from your desktop app, but running fine in modern web browser. For information browser supported read in here
Why must WebP ?
WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller than comparable JPEG images at equivalent SSIM quality index. more information in here WebP Images and in Wikipedia in here