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.
- Host: GitHub
- URL: https://github.com/mbrjun/hexo-webp-polyfill
- Owner: MBRjun
- License: mit
- Created: 2023-03-12T15:11:44.000Z (about 3 years ago)
- Default Branch: latest
- Last Pushed: 2023-06-25T06:02:11.000Z (almost 3 years ago)
- Last Synced: 2025-02-28T12:08:02.538Z (over 1 year ago)
- Topics: browser-polyfill, decoder, hexo, plugin, polyfill, webp, webp-polyfill
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hexo-webp-polyfill
- Size: 27.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-webp-polyfill
[](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)