Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ server/src/data/masterfile.json

# Favicon
public/favicon/*
!public/favicon/favicon.ico
!public/favicon/fallback.ico

# Strategies
server/src/strategies/*
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<p align="center">
<img width="390" alt="ReactMap_Logo" src="https://user-images.githubusercontent.com/58572875/167069223-745a139d-f485-45e3-a25c-93ec4d09779c.png">
</p>

# ReactMap

[![GitHub Release](https://img.shields.io/github/release/WatWowMap/ReactMap.svg)](https://github.com/WatWowMap/ReactMap/releases/)
Expand Down
10 changes: 6 additions & 4 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ const plugins = [
{
entryPoints: ['src/index.jsx'],
filename: 'index.html',
htmlTemplate: fs.readFileSync('./public/index.html'),
htmlTemplate: fs.readFileSync(path.resolve(__dirname, './public/index.html')),
scriptLoading: 'defer',
favicon: './public/favicon/favicon.ico',
favicon: fs.existsSync(path.resolve(__dirname, './public/favicon/favicon.ico'))
? path.resolve(__dirname, './public/favicon/favicon.ico')
: path.resolve(__dirname, './public/favicon/fallback.ico'),
extraScripts: isServing ? [
{ src: '/esbuild-livereload.js', attrs: { async: true } },
] : undefined,
Expand All @@ -55,8 +57,8 @@ const plugins = [
}),
esbuildMxnCopy({
copy: [
{ from: 'public/images', to: 'dist/' },
{ from: 'public/locales', to: 'dist/' },
{ from: path.resolve(__dirname, './public/images'), to: 'dist/' },
{ from: path.resolve(__dirname, './public/locales'), to: 'dist/' },
],
}),
aliasPlugin({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactmap",
"version": "1.2.4",
"version": "1.2.5",
"description": "React based frontend map.",
"main": "ReactMap.mjs",
"author": "TurtIeSocks <58572875+TurtIeSocks@users.noreply.github.com>",
Expand Down
Binary file added public/favicon/fallback.ico
Binary file not shown.
Binary file removed public/favicon/favicon.ico
Binary file not shown.