Skip to content

Commit f20a16e

Browse files
authored
Convert CRA to Vite (#28)
1 parent 49ff66d commit f20a16e

File tree

26 files changed

+4782
-14190
lines changed

26 files changed

+4782
-14190
lines changed

public/index.html index.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
<!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="An app to manage your d&d campaign"
11-
/>
8+
<meta name="description" content="An app to manage your d&d campaign" />
129
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
1310
<!--
1411
manifest.json provides metadata used when your web app is installed on a
@@ -39,5 +36,6 @@
3936
<body>
4037
<noscript>You need to enable JavaScript to run this app.</noscript>
4138
<div id="root"></div>
39+
<script type="module" src="/src/index.jsx"></script>
4240
</body>
4341
</html>

package-lock.json

+4,606-14,056
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@
1212
"react": "^16.14.0",
1313
"react-dom": "^16.14.0",
1414
"react-rnd": "^10.4.1",
15-
"react-scripts": "3.4.1",
1615
"redux-undo": "^1.0.1",
1716
"sass": "^1.62.1"
1817
},
1918
"scripts": {
20-
"start": "react-scripts start",
21-
"build": "react-scripts build",
22-
"test": "react-scripts test",
23-
"eject": "react-scripts eject"
19+
"start": "vite",
20+
"build": "vite build",
21+
"serve": "vite preview"
2422
},
2523
"eslintConfig": {
2624
"extends": "react-app"
@@ -38,8 +36,10 @@
3836
]
3937
},
4038
"devDependencies": {
39+
"@vitejs/plugin-react": "^4.0.4",
4140
"react-redux": "^7.2.9",
4241
"redux": "^4.2.1",
43-
"redux-thunk": "^2.4.2"
42+
"redux-thunk": "^2.4.2",
43+
"vite": "^4.4.9"
4444
}
4545
}

src/App.js src/App.jsx

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/index.js src/index.jsx

File renamed without changes.

0 commit comments

Comments
 (0)