Skip to content

Commit

Permalink
Migrate from CRA to Vite (#74)
Browse files Browse the repository at this point in the history
* Migrate to Vite.

* Update node version for deployment.

* Change meta icon path.
  • Loading branch information
garg3133 authored Jan 21, 2024
1 parent dab5751 commit 531a2ea
Show file tree
Hide file tree
Showing 9 changed files with 4,852 additions and 50,059 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.14.2
node-version: 20.11.0
- name: Installing Dependencies
run: npm ci
- name: Building
Expand Down
17 changes: 4 additions & 13 deletions frontend/public/index.html → frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="./bitbyte.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;900&display=swap"
Expand All @@ -23,23 +22,14 @@
<link
rel="icon"
type="image/x-icon"
href="/webix.iiitdmj.ac.in/favicon.ico"
href="/favicon.ico"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="manifest" href="/manifest.json" />
<title>The Programming Club IIITDMJ</title>
</head>
<body>
Expand All @@ -51,6 +41,7 @@
window.location.href = "https://www.iiitdmj.ac.in/webix.iiitdmj.ac.in";
}
</script>
<script type="module" src="/src/index.tsx"></script>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
Expand Down
Loading

0 comments on commit 531a2ea

Please # to comment.