FontReport
What the build produced for fonts: every file with its size, and the totals.
What the build produced for fonts: every file with its size, and the totals.
Import#
ts
import type { FontReport } from "@shadow-js/dusk/vite";
Signature#
ts
interface FontReport {
readonly files: readonly FontReportFile[];
/** The bytes of every file. */
readonly totalBytes: number;
/** The bytes of the files every page preloads: what the browser fetches before it paints text. */
readonly preloadedBytes: number;
}
Members#
| Name | Type | Description |
|---|---|---|
files |
readonly files: readonly FontReportFile[] |
|
totalBytes |
readonly totalBytes: number |
The bytes of every file. |
preloadedBytes |
readonly preloadedBytes: number |
The bytes of the files every page preloads: what the browser fetches before it paints text. |