Skip to content

Commit 9a5c841

Browse files
committed
feat: preload fort-awesome styles
1 parent f0fa7e5 commit 9a5c841

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

docusaurus.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ module.exports = {
66
organizationName: "mocks-server",
77
projectName: "mocks-server",
88
scripts: ["https://buttons.github.io/buttons.js"],
9+
stylesheets: [
10+
{
11+
href: "/css/fort-awesome.css",
12+
type: "text/css",
13+
},
14+
],
915
favicon: "img/favicon.ico",
1016
customFields: {
1117
repoUrl: "https://github.com/mocks-server/main",

src/pages/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import useBaseUrl from "@docusaurus/useBaseUrl";
1818
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
1919

2020
import useText from "@theme/custom-hooks/useText";
21+
import { config } from "@fortawesome/fontawesome-svg-core";
22+
config.autoAddCss = false;
2123

2224
const textContents = {
2325
featuresQuickAndSimple: `

static/css/fort-awesome.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)