Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l-chris/v-webp
vue directive, use webp if support
https://github.com/l-chris/v-webp
Last synced: about 2 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 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-19T09:41:40.000Z (over 6 years ago)
- Last Synced: 2024-10-30T00:27:19.476Z (2 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
```