Skip to content

Commit 63bb55b

Browse files
authored
chore: compress and cache favicon.ico (conwnet#309)
1 parent 0a422ce commit 63bb55b

10 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎resources/favicon-dark.ico‎

-315 KB
Binary file not shown.

‎resources/favicon-dark.svg‎

Lines changed: 3 additions & 0 deletions
Loading

‎resources/favicon-light.ico‎

-13.2 KB
Binary file not shown.

‎resources/favicon-light.svg‎

Lines changed: 3 additions & 0 deletions
Loading

‎resources/favicon.ico‎

2.19 KB
Binary file not shown.

‎resources/index-dev-vscode.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<!-- VS Code Extensions Configuration -->
1313
<meta id="vscode-workbench-builtin-extensions" data-settings="[]" />
1414
<!-- Workbench Icon/Manifest/CSS -->
15-
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.ico" type="image/x-icon">
16-
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.ico" type="image/x-icon">
15+
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.svg" type="image/svg+xml">
16+
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.svg" type="image/svg+xml">
1717
<link rel="manifest" href="/manifest.json" />
1818
<title>GitHub1s</title>
1919
</head>

‎resources/index-hash.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<!-- VS Code Extensions Configuration -->
1313
<meta id="vscode-workbench-builtin-extensions" data-settings="[]" />
1414
<!-- Workbench Icon/Manifest/CSS -->
15-
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.ico" type="image/x-icon">
16-
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.ico" type="image/x-icon">
15+
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.svg" type="image/svg+xml">
16+
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.svg" type="image/svg+xml">
1717
<link rel="preload" href="/static/{STATIC_HASH_CODE}/vscode/vs/workbench/workbench.web.api.css" as="style">
1818
<link rel="preload" href="/static/{STATIC_HASH_CODE}/vscode/vs/code/browser/workbench/workbench.css" as="style">
1919
<link rel="manifest" href="/manifest.json" />

‎resources/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<!-- VS Code Extensions Configuration -->
1313
<meta id="vscode-workbench-builtin-extensions" data-settings="[]" />
1414
<!-- Workbench Icon/Manifest/CSS -->
15-
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.ico" type="image/x-icon">
16-
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.ico" type="image/x-icon">
15+
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.svg" type="image/svg+xml">
16+
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.svg" type="image/svg+xml">
1717
<link rel="preload" href="/static/vscode/vs/workbench/workbench.web.api.css" as="style">
1818
<link rel="preload" href="/static/vscode/vs/code/browser/workbench/workbench.css" as="style">
1919
<link rel="manifest" href="/manifest.json" />

‎scripts/package/copy-resources.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function main() {
1313
else
1414
cp resources/index.html dist/index.html
1515
fi
16-
cp resources/*.ico dist
16+
cp resources/favicon* dist
1717
cp resources/manifest.json dist
1818

1919
echo "copy resources done!"

‎vercel.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
]
2929
},
3030
{
31-
"source": "/favicon(-dark|-light)?.ico",
31+
"source": "/favicon(-dark|-light)?\\.(ico|svg)",
3232
"headers": [
3333
{
3434
"key": "Cache-Control",

0 commit comments

Comments
 (0)