Skip to content

Commit

Permalink
chore: compress and cache favicon.ico (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
conwnet authored May 22, 2021
1 parent 0a422ce commit 63bb55b
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 8 deletions.
Binary file removed resources/favicon-dark.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions resources/favicon-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/favicon-light.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions resources/favicon-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions resources/index-dev-vscode.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<!-- VS Code Extensions Configuration -->
<meta id="vscode-workbench-builtin-extensions" data-settings="[]" />
<!-- Workbench Icon/Manifest/CSS -->
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.ico" type="image/x-icon">
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.ico" type="image/x-icon">
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.svg" type="image/svg+xml">
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.svg" type="image/svg+xml">
<link rel="manifest" href="/manifest.json" />
<title>GitHub1s</title>
</head>
Expand Down
4 changes: 2 additions & 2 deletions resources/index-hash.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<!-- VS Code Extensions Configuration -->
<meta id="vscode-workbench-builtin-extensions" data-settings="[]" />
<!-- Workbench Icon/Manifest/CSS -->
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.ico" type="image/x-icon">
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.ico" type="image/x-icon">
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.svg" type="image/svg+xml">
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.svg" type="image/svg+xml">
<link rel="preload" href="/static/{STATIC_HASH_CODE}/vscode/vs/workbench/workbench.web.api.css" as="style">
<link rel="preload" href="/static/{STATIC_HASH_CODE}/vscode/vs/code/browser/workbench/workbench.css" as="style">
<link rel="manifest" href="/manifest.json" />
Expand Down
4 changes: 2 additions & 2 deletions resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<!-- VS Code Extensions Configuration -->
<meta id="vscode-workbench-builtin-extensions" data-settings="[]" />
<!-- Workbench Icon/Manifest/CSS -->
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.ico" type="image/x-icon">
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.ico" type="image/x-icon">
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.svg" type="image/svg+xml">
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.svg" type="image/svg+xml">
<link rel="preload" href="/static/vscode/vs/workbench/workbench.web.api.css" as="style">
<link rel="preload" href="/static/vscode/vs/code/browser/workbench/workbench.css" as="style">
<link rel="manifest" href="/manifest.json" />
Expand Down
2 changes: 1 addition & 1 deletion scripts/package/copy-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function main() {
else
cp resources/index.html dist/index.html
fi
cp resources/*.ico dist
cp resources/favicon* dist
cp resources/manifest.json dist

echo "copy resources done!"
Expand Down
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
]
},
{
"source": "/favicon(-dark|-light)?.ico",
"source": "/favicon(-dark|-light)?\\.(ico|svg)",
"headers": [
{
"key": "Cache-Control",
Expand Down

0 comments on commit 63bb55b

Please sign in to comment.