File tree 7 files changed +7389
-22991
lines changed
7 files changed +7389
-22991
lines changed Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 " />
5
- < link rel ="icon " href ="%PUBLIC_URL% /favicon.ico " />
5
+ < link rel ="icon " href ="/favicon.ico " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
7
7
< meta name ="theme-color " content ="#000000 " />
8
8
< meta name ="description " content ="Web site created using create-react-app " />
9
- < link rel ="apple-touch-icon " href ="%PUBLIC_URL% /logo192.png " />
9
+ < link rel ="apple-touch-icon " href ="/logo192.png " />
10
10
<!--
11
11
manifest.json provides metadata used when your web app is installed on a
12
12
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
13
13
-->
14
- < link rel ="manifest " href ="%PUBLIC_URL%/manifest.json " />
15
- <!--
16
- Notice the use of %PUBLIC_URL% in the tags above.
17
- It will be replaced with the URL of the `public` folder during the build.
18
- Only files inside the `public` folder can be referenced from the HTML.
19
-
20
- Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
21
- work correctly both with client-side routing and a non-root public URL.
22
- Learn how to configure a non-root public URL by running `npm run build`.
23
- -->
14
+ < link rel ="manifest " href ="/manifest.json " />
24
15
< title > React App</ title >
25
16
</ head >
26
17
< body >
36
27
To begin the development, run `npm start` or `yarn start`.
37
28
To create a production bundle, use `npm run build` or `yarn build`.
38
29
-->
30
+ < script type ="module " src ="/src/index.jsx "> </ script >
39
31
</ body >
40
32
</ html >
Original file line number Diff line number Diff line change 3
3
"private" : true ,
4
4
"version" : " 3.0.0-dev" ,
5
5
"scripts" : {
6
- "start" : " react-scripts start " ,
7
- "build" : " react-scripts build" ,
8
- "eject " : " react-scripts eject "
6
+ "start" : " vite " ,
7
+ "build" : " vite build" ,
8
+ "preview " : " vite preview "
9
9
},
10
10
"eslintConfig" : {
11
11
"extends" : [
29
29
"@testing-library/jest-dom" : " ^6.4.2" ,
30
30
"@testing-library/react" : " ^14.2.2" ,
31
31
"@testing-library/user-event" : " ^14.5.2" ,
32
- "react-scripts" : " ^5.0.1"
32
+ "@vitejs/plugin-react" : " ^4.2.1" ,
33
+ "vite" : " ^5.2.6"
33
34
},
34
35
"dependencies" : {
35
36
"@exceptionless/react" : " 3.0.0-dev" ,
36
37
"react" : " ^18.2.0" ,
37
- "react-dom" : " ^18.2.0" ,
38
- "web-vitals" : " ^3.5.2"
38
+ "react-dom" : " ^18.2.0"
39
39
},
40
+ "type" : " module" ,
40
41
"publishConfig" : {
41
42
"access" : " restricted"
42
43
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import React from "react";
2
2
import { createRoot } from "react-dom/client" ;
3
3
import "./index.css" ;
4
4
import App from "./App" ;
5
- import reportWebVitals from "./reportWebVitals" ;
6
5
7
6
const container = document . getElementById ( "root" ) ;
8
7
const root = createRoot ( container ) ;
@@ -12,8 +11,3 @@ root.render(
12
11
< App />
13
12
</ React . StrictMode >
14
13
) ;
15
-
16
- // If you want to start measuring performance in your app, pass a function
17
- // to log results (for example: reportWebVitals(console.log))
18
- // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
19
- reportWebVitals ( ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from "vite" ;
2
+ import react from "@vitejs/plugin-react" ;
3
+
4
+ export default defineConfig ( {
5
+ base : "" ,
6
+ plugins : [ react ( ) ] ,
7
+ server : {
8
+ open : true ,
9
+ port : 5174
10
+ }
11
+ } ) ;
You can’t perform that action at this time.
0 commit comments