All CSS processing is handled by the filter, and is now inlined into the HTML
26 lines
579 B
JavaScript
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;
|