unplugin-fonts
Version:
Universal Webfont loader
12 lines (11 loc) • 413 B
JavaScript
import { googleLoader } from "./google-fonts.mjs";
import { typekitLoader } from "./typekit.mjs";
//#region src/loaders/index.ts
function getHeadLinkTags(resolvedOptions) {
const tags = [];
if (resolvedOptions.typekit) tags.push(...typekitLoader(resolvedOptions.typekit));
if (resolvedOptions.google) tags.push(...googleLoader(resolvedOptions.google));
return tags;
}
//#endregion
export { getHeadLinkTags };