mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
docs: add Seven-innovation-base to showcase (#7144)
* Update users.tsx * Add files via upload * Update users.tsx * Update users.tsx * Delete 1.png * Add files via upload * optimize image * fix tags Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
f4ab7c65ac
commit
0abf4d706c
3 changed files with 9 additions and 1 deletions
|
@ -25,7 +25,7 @@ await Promise.all(
|
|||
new URL(`../../website/src/data/showcase/${img}`, import.meta.url),
|
||||
);
|
||||
const {width, height} = imageSize(imgPath);
|
||||
if (width === 640 && height === 320) {
|
||||
if (width === 640 && height === 320 && imgPath.endsWith('.png')) {
|
||||
// Do not emit if not resized. Important because we can't guarantee
|
||||
// idempotency during resize -> optimization
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue