wonderfulfrog.com/src/data/preloads.js
Devin Haska 2aa912399c feat: add postcss filter
All CSS processing is handled by the filter, and is now inlined into the
HTML
2025-03-16 12:07:31 -07:00

26 lines
579 B
JavaScript

import path from "path";
import { ASSETS_FONTS_PATH } from "../../config/constants/paths.js";
import fonts from "../../config/design-tokens/fonts.js";
const getFontUrl = (src) => path.join(ASSETS_FONTS_PATH, src);
const preloads = [
{
as: "font",
href: getFontUrl(fonts.display.weights.ExtraBold.path),
crossorigin: true,
},
{
as: "font",
href: getFontUrl(fonts.display.weights.Bold.path),
crossorigin: true,
},
{
as: "font",
href: getFontUrl(fonts.body.weights.Regular.path),
crossorigin: true,
},
];
export default preloads;