Skip to content

Commit

Permalink
Add support for webp format
Browse files Browse the repository at this point in the history
  • Loading branch information
terencelimzhengwei committed Mar 26, 2024
1 parent c7c20e0 commit 2039438
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ const fs = require('fs').promises

// copy images inside ./build
const images = [
...(await glob('./img/*/*.{png,svg}')),
...(await glob('./img/*.{png,svg}')),
...(await glob('./img/*/*.{png,svg,webp}')),
...(await glob('./img/*.{png,svg,webp}')),
]

await Promise.all(
Expand Down
2 changes: 1 addition & 1 deletion legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const axelar = require("./axelar.js");
);

// copy images inside ./build
const images = await glob("./img/*/*.{png,svg}");
const images = await glob("./img/*/*.{png,svg,webp}");

await Promise.all(
images.map(async (file) => {
Expand Down

0 comments on commit 2039438

Please sign in to comment.