Finally, we've created a tool for this purpose - it's single binary, blazing fast, and of course, convert JPEG/PNG to WebP ON THE FLY.
You open a website contains any JPEG/PNG photos, we'll convert you big file to tiny WebP file on the fly so you don't have to change the url - everything stays the same except for file size, content-type and performance of your website.
This is just so simple as it ever should be. If you‘re interested, check and give a star at the following url:
https://github.com/webp-sh/webp_server_go