Skip to content

Commit 7a74a00

Browse files
committed
in vite.config.json setting base: './', + move other resources
1 parent 61ef753 commit 7a74a00

File tree

7 files changed

+4
-4
lines changed

7 files changed

+4
-4
lines changed
File renamed without changes.

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="/favicon.ico" />
5+
<link rel="icon" href="./favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta
99
name="description"
1010
content="Web site created using create-react-app"
1111
/>
12-
<link rel="apple-touch-icon" href="/logo192.png" />
12+
<link rel="apple-touch-icon" href="./logo192.png" />
1313
<!--
1414
manifest.json provides metadata used when your web app is installed on a
1515
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1616
-->
17-
<link rel="manifest" href="/manifest.json" />
17+
<link rel="manifest" href="./manifest.json" />
1818
<!--
1919
Notice the use of %PUBLIC_URL% in the tags above.
2020
It will be replaced with the URL of the `public` folder during the build.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": "./",
43
"target": "ESNext",
54
"lib": [
65
"dom",

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default defineConfig({
99
build: {
1010
outDir: './build',
1111
},
12+
base: './',
1213
plugins: [
1314
react(),
1415
svgrPlugin({

0 commit comments

Comments
 (0)