Skip to content

Commit

Permalink
Preload fontawesome font
Browse files Browse the repository at this point in the history
  • Loading branch information
esimkowitz committed Sep 26, 2024
1 parent 51db6f4 commit c8d68cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ const config: Config = {
copyright: `Copyright © ${new Date().getFullYear()} Command Line Inc. Built with Docusaurus.`,
},
},
headTags: [
{
tagName: "link",
attributes: {
rel: "preload",
as: "font",
type: "font/woff2",
"data-next-font": "size-adjust",
href: "/fontawesome/webfonts/fa-sharp-regular-400.woff2",
},
},
],
stylesheets: ["/fontawesome/css/fontawesome.min.css", "/fontawesome/css/sharp-regular.min.css"],
staticDirectories: ["static"],
};
Expand Down

0 comments on commit c8d68cf

Please sign in to comment.