Skip to content

Commit 999de3b

Browse files
author
Mirko Rapisarda
committed
chore: fix Lighthouse problems about fonts and images
1 parent 61b6c5b commit 999de3b

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

firebase.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,26 @@
1313
}
1414
]
1515
},
16+
"headers": [
17+
{
18+
"source": "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
19+
"headers": [
20+
{
21+
"key": "Access-Control-Allow-Origin",
22+
"value": "*"
23+
}
24+
]
25+
},
26+
{
27+
"source": "**/*.@(jpg|jpeg|gif|png|svg)",
28+
"headers": [
29+
{
30+
"key": "Cache-Control",
31+
"value": "max-age=31536000"
32+
}
33+
]
34+
}
35+
],
1636
"functions": {
1737
"predeploy": [
1838
"npm --prefix \"$RESOURCE_DIR\" run lint"

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<link rel="icon" href="./favicon.ico">
2020
<link rel="manifest" href="./manifest.json">
2121
<title>Three-point Estimation - A technique to estimate tasks with triangular distribution</title>
22-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
22+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap">
2323
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
2424
</head>
2525
<body>

0 commit comments

Comments
 (0)