Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Weeken/farm-plugin-webp-to-png
A rust plugin for farm to convert your webp to png, and compress all the png.
https://github.com/Weeken/farm-plugin-webp-to-png
Last synced: about 2 months ago
JSON representation
A rust plugin for farm to convert your webp to png, and compress all the png.
- Host: GitHub
- URL: https://github.com/Weeken/farm-plugin-webp-to-png
- Owner: Weeken
- Created: 2024-08-06T06:56:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T09:39:02.000Z (5 months ago)
- Last Synced: 2024-08-07T09:16:30.786Z (5 months ago)
- Language: Rust
- Size: 589 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-farm - `farm-plugin-webp-to-png`
- awesome-farm - `farm-plugin-webp-to-png`
README
## farm-plugin-webp-to-png
A rust plugin for farm to automatically convert your webp to png, and compress all the png.
You don't need to change anything in your code, the plugin can automatically replace all the `.webp` to `.png`.
### Install
```bash
pnpm add -D farm-plugin-webp-to-png
```### Usage
```ts
import { defineConfig } from "@farmfe/core";
import webpToPng from 'farm-plugin-webp-to-png';export default defineConfig({
plugins: [
webpToPng()
],
});
```