Skip to content

Commit df6c23c

Browse files
chore: vite
1 parent 40d1c07 commit df6c23c

File tree

117 files changed

+2933
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2933
-211
lines changed

.pnp.cjs

+1,613-186
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
23.1 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>React App</title>
5+
<meta charset="utf-8" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover"
9+
/>
10+
</head>
11+
<body>
12+
<div id="root"></div>
13+
<script type="module" src="./src/index.tsx"></script>
14+
</body>
15+
</html>

package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
22
"name": "react-app-tony",
3+
"private": true,
4+
"scripts": {
5+
"build": "vite build",
6+
"dev": "vite --host 0.0.0.0"
7+
},
38
"devDependencies": {
49
"@typescript-eslint/parser": "^5.20.0",
10+
"@vanilla-extract/vite-plugin": "^3.2.1",
11+
"@vitejs/plugin-react": "^1.3.2",
512
"eslint": "^8.17.0",
613
"eslint-config-airbnb": "^19.0.4",
714
"eslint-config-prettier": "^8.5.0",
@@ -14,7 +21,8 @@
1421
"eslint-plugin-react-hooks": "^4.3.0",
1522
"eslint-plugin-simple-import-sort": "^7.0.0",
1623
"prettier": "^2.7.0",
17-
"typescript": "^4.7.3"
24+
"typescript": "^4.7.3",
25+
"vite": "^2.9.12"
1826
},
1927
"packageManager": "[email protected]"
2028
}

src/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("Hello, World");

vite.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
2+
import react from "@vitejs/plugin-react";
3+
import { defineConfig } from "vite";
4+
5+
export default defineConfig({
6+
plugins: [react(), vanillaExtractPlugin()],
7+
});

0 commit comments

Comments
 (0)