[]previous and next page

formatFontReport

The report as a table of text, one line per file, with the totals.

The report as a table of text, one line per file, with the totals.

Import#

ts
import { formatFontReport } from "@shadow-js/dusk/vite";

Signature#

ts
function formatFontReport(report: FontReport): string

Parameters#

Name Description
report The report from defineFonts.

Returns#

Text for the build log.

Examples#

ts
formatFontReport({ files: [], totalBytes: 0, preloadedBytes: 0 }); // "fonts: no files"