What is WebP? - Answer
bower install --save webp-support
npm install --save webp-detect
Include the script in your HTML
or add to your bundle:
If browser support webp format it'll add the
webp class to body tag.
Also you can import ES2015 version in your scripts.