Skip to content

Commit 4cfab4b

Browse files
authored
Merge pull request #483 from WatWowMap/favicon-swap
New Favicon
2 parents 729d65d + 7646f78 commit 4cfab4b

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ server/src/data/masterfile.json
2020

2121
# Favicon
2222
public/favicon/*
23-
!public/favicon/favicon.ico
23+
!public/favicon/fallback.ico
2424

2525
# Strategies
2626
server/src/strategies/*

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<p align="center">
2+
<img width="390" alt="ReactMap_Logo" src="https://user-images.githubusercontent.com/58572875/167069223-745a139d-f485-45e3-a25c-93ec4d09779c.png">
3+
</p>
4+
15
# ReactMap
26

37
[![GitHub Release](https://img.shields.io/github/release/WatWowMap/ReactMap.svg)](https://github.com/WatWowMap/ReactMap/releases/)

esbuild.config.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ const plugins = [
4444
{
4545
entryPoints: ['src/index.jsx'],
4646
filename: 'index.html',
47-
htmlTemplate: fs.readFileSync('./public/index.html'),
47+
htmlTemplate: fs.readFileSync(path.resolve(__dirname, './public/index.html')),
4848
scriptLoading: 'defer',
49-
favicon: './public/favicon/favicon.ico',
49+
favicon: fs.existsSync(path.resolve(__dirname, './public/favicon/favicon.ico'))
50+
? path.resolve(__dirname, './public/favicon/favicon.ico')
51+
: path.resolve(__dirname, './public/favicon/fallback.ico'),
5052
extraScripts: isServing ? [
5153
{ src: '/esbuild-livereload.js', attrs: { async: true } },
5254
] : undefined,
@@ -55,8 +57,8 @@ const plugins = [
5557
}),
5658
esbuildMxnCopy({
5759
copy: [
58-
{ from: 'public/images', to: 'dist/' },
59-
{ from: 'public/locales', to: 'dist/' },
60+
{ from: path.resolve(__dirname, './public/images'), to: 'dist/' },
61+
{ from: path.resolve(__dirname, './public/locales'), to: 'dist/' },
6062
],
6163
}),
6264
aliasPlugin({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactmap",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"description": "React based frontend map.",
55
"main": "ReactMap.mjs",
66
"author": "TurtIeSocks <58572875+TurtIeSocks@users.noreply.github.com>",

public/favicon/fallback.ico

264 KB
Binary file not shown.

public/favicon/favicon.ico

-33.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)