https://github.com/l-chris/v-webp
vue directive, use webp if support
https://github.com/l-chris/v-webp
Last synced: 7 months ago
JSON representation
vue directive, use webp if support
- Host: GitHub
- URL: https://github.com/l-chris/v-webp
- Owner: L-Chris
- License: mit
- Created: 2018-05-14T16:43:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-19T09:41:40.000Z (over 7 years ago)
- Last Synced: 2025-06-09T00:38:40.609Z (8 months ago)
- Language: JavaScript
- Size: 181 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
v-webp-next
## ✨ Features:
- use webp when supported
- support background-image and img
## 🔧 Installation
### NPM
```bash
npm install v-webp-next --save
```
### YARN
```bash
yarn add v-webp-next
```
## 📦 Usage
```js
// install
import VWebp from 'v-webp-next'
Vue.use(VWebp)
// nromal use with img
![]()
// add modifier .bg when use image in background-image property
```