feat(static): add favicon
test / test (push) Successful in 1m19s

This commit is contained in:
2026-10-05 19:31:08 +03:00
parent 160e1f9156
commit f9e810049d
3 changed files with 9 additions and 1 deletions
@@ -14,7 +14,7 @@
<script type="module" <script type="module"
src="/static/gallery.js?v={{version}}"></script> src="/static/gallery.js?v={{version}}"></script>
<link rel="icon" <link rel="icon"
href="/favicon.ico?v={{version}}" href="/static/favicon.ico?v={{version}}"
type="image/x-icon"> type="image/x-icon">
{% endblock %} {% endblock %}
</head> </head>
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+8
View File
@@ -56,14 +56,17 @@ const config: webpack.Configuration = {
new MiniCssExtractPlugin({ filename: `${packageInfo.name}.css` }), new MiniCssExtractPlugin({ filename: `${packageInfo.name}.css` }),
new CopyPlugin({ new CopyPlugin({
patterns: [ patterns: [
// weather icons
{ {
from: "./src/lib/weather-icons/icons/*.svg", from: "./src/lib/weather-icons/icons/*.svg",
to: "weather-icons/icons/[name][ext]", to: "weather-icons/icons/[name][ext]",
}, },
// bootstrap icons
{ {
from: "./node_modules/bootstrap-icons/icons/*.svg", from: "./node_modules/bootstrap-icons/icons/*.svg",
to: "bootstrap-icons/icons/[name][ext]", to: "bootstrap-icons/icons/[name][ext]",
}, },
// flag icons
{ {
from: "./node_modules/flag-icons/flags/1x1/*.svg", from: "./node_modules/flag-icons/flags/1x1/*.svg",
to: "flag-icons/flags/1x1/[name][ext]", to: "flag-icons/flags/1x1/[name][ext]",
@@ -72,6 +75,11 @@ const config: webpack.Configuration = {
from: "./node_modules/flag-icons/flags/4x3/*.svg", from: "./node_modules/flag-icons/flags/4x3/*.svg",
to: "flag-icons/flags/4x3/[name][ext]", to: "flag-icons/flags/4x3/[name][ext]",
}, },
// favicon
{
from: "./src/favicon.ico",
to: "favicon.ico",
},
], ],
}), }),
], ],