Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2783f98

Browse files
feat: initialized vite config
1 parent ad7c8db commit 2783f98

File tree

6 files changed

+376
-14
lines changed

6 files changed

+376
-14
lines changed

‎index.html‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="og:title" property="og:title" content="Sorting Algorithm Visualizer">
8+
<meta name="site" content="Sorting Algorithm Visualizer" />
9+
<meta name="author" content="Bikram Karki" />
10+
<title>Sorting Algorithms Visualier</title>
11+
</head>
12+
<body>
13+
<div id="root"></div>
14+
<script type="module" src="/src/index.tsx"></script>
15+
</body>
16+
</html>

‎package.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"main": "index.js",
55
"author": "Bikram Karki",
66
"license": "MIT",
7+
"type": "module",
78
"scripts": {
8-
"start": "webpack serve --config webpack/webpack.dev.config.ts",
9-
"build": "rm -rf build && webpack --config webpack/webpack.prod.config.ts",
9+
"start": "vite serve",
10+
"build": "vite build",
1011
"lint": "eslint --ext .ts,.tsx src/",
1112
"lint:fix": "eslint --fix --ext .ts,.tsx src/",
1213
"prettier": "prettier \"**/*.+(js|jsx|json|ts|tsx|css|scss|md|mdx|graphql)\" --write",
@@ -47,6 +48,7 @@
4748
"@types/webpack-dev-server": "^3.11.1",
4849
"@typescript-eslint/eslint-plugin": "^4.14.0",
4950
"@typescript-eslint/parser": "^4.14.0",
51+
"@vitejs/plugin-react": "^1.3.1",
5052
"babel-loader": "^8.2.2",
5153
"babel-plugin-transform-class-properties": "^6.24.1",
5254
"clean-webpack-plugin": "^3.0.0",
@@ -65,6 +67,7 @@
6567
"style-loader": "^2.0.0",
6668
"ts-node": "^9.1.1",
6769
"typescript": "^4.1.3",
70+
"vite": "^2.9.6",
6871
"webpack": "^5.17.0",
6972
"webpack-cli": "^4.3.1",
7073
"webpack-dev-server": "^3.11.1"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /