google-fonts-plugin
Version:
Webpack plugin that downloads fonts from Google Fonts and encodes them to base64.
23 lines (22 loc) • 677 B
TypeScript
import DefaultOptions from './DefaultOptions';
import Font from './Font';
import FontDisplay from './FontDisplay';
export default class Options implements DefaultOptions {
fonts: Font[];
formats: string[];
private readonly formatAgents;
chunkName: string;
filename: string;
fontDisplay: FontDisplay | string;
encode: boolean;
cache: boolean;
file: string;
stats: boolean;
private readonly input;
constructor(input?: DefaultOptions | string, initialize?: boolean);
get: () => DefaultOptions;
private getFromFile;
private getFromPackage;
private crawl;
getAgent(format: string): string;
}