Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 80386cd

Browse files
committed
fix(fusuma): allow undefined for gzSize
1 parent 9ef7beb commit 80386cd

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,11 @@ You can see your Note for each slide and the next slide on the Host screen.
197197

198198
> [Lighthouse](https://developers.google.com/web/tools/lighthouse) is an open-source, automated tool for improving the quality of web pages. You can run it against any web page, public or requiring authentication. It has audits for performance, accessibility, progressive web apps, SEO and more.
199199
200-
Fusuma supports improving performance, SEO, and so on as default.
200+
Fusuma supports improving performance, SEO, and so on as default, analyzes the slide's performance, and outputs like below.
201201

202-
<img src="./site/docs/assets/lighthouse.png" width="500px">
203-
204-
Fusuma analyzes the slide's performance, and outputs like below.
205-
206-
<img src="./output-logs.png" width="500px">
202+
| the score of lighthouse | output logs |
203+
| :------------------------------------: | :--------------------: |
204+
| ![](./site/docs/assets/lighthouse.png) | ![](./output-logs.png) |
207205

208206
---
209207

output-logs.png

72.3 KB
Loading

packages/fusuma/src/utils/buildLogs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function buildLogs(logs) {
155155
isAsync ? asyncChunk : syncChunk
156156
} ${name}`,
157157
chalk.blue(prettyBytes(size)),
158-
gzSize !== 0 ? chalk.blue(prettyBytes(gzSize)) : '',
158+
gzSize ? chalk.blue(prettyBytes(gzSize)) : '',
159159
]);
160160
});
161161

site/docs/assets/lighthouse.png

-121 KB
Loading

0 commit comments

Comments
 (0)