We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b578665 commit 97b9ff7Copy full SHA for 97b9ff7
1 file changed
_plugins/scripts/webp.js
@@ -2,13 +2,11 @@ import fs from "fs";
2
import path from "path";
3
import sharp from "sharp";
4
5
-async function webp({ source, destination }) {
+export default async function ({ source, destination }) {
6
if (global.Bun && Bun.Image) {
7
await Bun.file(source).image().webp().write(destination);
8
} else {
9
await sharp(source).toFile(destination);
10
}
11
return path.relative("./", destination);
12
13
-
14
-export default webp;
0 commit comments