feat: rename includes and data directories
This commit is contained in:
parent
864bc7be71
commit
408e859ef4
41 changed files with 7 additions and 9 deletions
22
src/data/preloads.js
Normal file
22
src/data/preloads.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { getFontUrl } from "../utils/fonts.js";
|
||||
import fonts from "../../config/design-tokens/fonts.js";
|
||||
|
||||
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;
|
Loading…
Add table
Add a link
Reference in a new issue