An open API service indexing awesome lists of open source software.

https://github.com/mbrjun/hexo-webp-polyfill

WebP image format browser polyfill for Hexo.
https://github.com/mbrjun/hexo-webp-polyfill

browser-polyfill decoder hexo plugin polyfill webp webp-polyfill

Last synced: about 1 year ago
JSON representation

WebP image format browser polyfill for Hexo.

Awesome Lists containing this project

README

          

# hexo-webp-polyfill
[![NPM version](https://badge.fury.io/js/hexo-webp-polyfill.svg)](https://www.npmjs.com/package/hexo-webp-polyfill)

WebP image format browser polyfill for Hexo.

## Installation
- 📦 NPM
```
npm i hexo-webp-polyfill --save
```

- 📦 Yarn
```
yarn add hexo-webp-polyfill
```

- ⚙️ Enable the plugin by editing main ``_config.yml`` file:
```yaml
webp_polyfill:
enable: true
force: false
minify: true
html5: true
```

## Features
- ✅ Load [WebP](https://developers.google.com/speed/webp) image format in **Internet Explorer 9-11** and **IE-based browser**.
- ⚖️ ``93 kiB`` Size(min 303B)
- ⚠️ Doesn't yet support css ``background-image`` and ``picture`` elements([upstream](https://github.com/chase-moskal/webp-hero) issues).

## Special thanks to
* [chase-moskal/webp-hero](https://github.com/chase-moskal/webp-hero)