A plugin help you replace .png .jpg to .webp
// in your main.js
import webp from 'vue2-webp'
Vue.use(webp)
// where you need to replace
<img v-webp="src" />
In construct it will check the browser, and if browser support use webp, it will replace .png or .jpg to .webp
- support mobile
- test webp file before replace
- more config