UNPKG

fontmin-spider

Version:

Analyze which fonts are used on the page and eliminate the ones that are not used to get a smaller font file

23 lines (22 loc) 546 B
export type Tkv = { [key: string]: any; }; export type TdeclaredFamilyMap = { [key: string]: { selector: string[]; path: string; chars: string; }; }; export type TfilterCallback = (declaredFamilyMap: TdeclaredFamilyMap) => void; export type Toptions = { basePath: string; source?: string | string[]; backup?: boolean; reserveText?: string | { [key: string]: string; }; ignore?: string[]; filter?: TfilterCallback; afterFilter?: TfilterCallback; };