Skip to content

Commit

Permalink
fix: web favicon (#2555)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuul-wq authored Oct 31, 2024
1 parent 7d5327c commit 2096b04
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 36 deletions.
12 changes: 6 additions & 6 deletions public/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
10 changes: 5 additions & 5 deletions src/renderer/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<meta charset="UTF-8" />

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<link rel="manifest" href="./site.webmanifest">
<link rel="mask-icon" href="./safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">

Expand Down
17 changes: 0 additions & 17 deletions src/renderer/shared/assets/images/social/matrix-full.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/renderer/shared/assets/images/social/matrix.svg

This file was deleted.

15 changes: 8 additions & 7 deletions webpack/webpack.renderer.shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { resolve } from 'path';

import { default as CopyWebpackPlugin } from 'copy-webpack-plugin';
import { default as CssMinimizerPlugin } from 'css-minimizer-webpack-plugin';
import { default as HtmlWebpackPlugin } from 'html-webpack-plugin';
import { default as MiniCssExtractPlugin } from 'mini-css-extract-plugin';
Expand Down Expand Up @@ -74,17 +75,15 @@ export const sharedRendererConfig = (mode: 'development' | 'production') =>
},

plugins: [
new CopyWebpackPlugin({
patterns: [{ from: 'public' }],
}),

new webpack.EnvironmentPlugin({
NODE_ENV: mode,
DEBUG_PROD: false,
}),

mode === 'production'
? new MiniCssExtractPlugin({
filename: '[name].[contenthash].css',
})
: null,

new HtmlWebpackPlugin({
template: resolve(FOLDERS.INDEX_HTML),
minify: {
Expand All @@ -94,5 +93,7 @@ export const sharedRendererConfig = (mode: 'development' | 'production') =>
isBrowser: false,
isDevelopment: mode === 'development',
}),
].filter((x) => x !== null),

mode === 'production' ? new MiniCssExtractPlugin({ filename: '[name].[contenthash].css' }) : null,
].filter((plugin) => plugin !== null),
});

0 comments on commit 2096b04

Please sign in to comment.