Skip to content

Commit e497e0c

Browse files
authored
Merge pull request #2 from eddie-atkinson/master
Move bundling to Vite
2 parents c4a1878 + 6ad56a2 commit e497e0c

File tree

7 files changed

+1958
-447
lines changed

7 files changed

+1958
-447
lines changed

.github/workflows/deploy-to-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
repository-name: judilsteve/judilsteve.github.io
2424
token: ${{ secrets.PAGES_ACCESS_TOKEN }}
2525
branch: master # The branch the action should deploy to.
26-
folder: build # The folder the action should deploy.
26+
folder: dist # The folder the action should deploy.

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/coverage
1010

1111
# production
12-
/build
12+
dist/**
1313

1414
# misc
1515
.DS_Store

public/index.html index.html

+21-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1" />
6-
<meta name="theme-color" content="#000000" />
7-
<meta
8-
name="description"
9-
content="Web site created using create-react-app"
10-
/>
11-
<!--
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta name="description" content="Web site created using vite" />
9+
<!--
1210
manifest.json provides metadata used when your web app is installed on a
1311
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1412
-->
15-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
16-
<!--
13+
<link rel="manifest" href="public/manifest.json" />
14+
<!--
1715
Notice the use of %PUBLIC_URL% in the tags above.
1816
It will be replaced with the URL of the `public` folder during the build.
1917
Only files inside the `public` folder can be referenced from the HTML.
@@ -22,12 +20,15 @@
2220
work correctly both with client-side routing and a non-root public URL.
2321
Learn how to configure a non-root public URL by running `npm run build`.
2422
-->
25-
<title>ASX CGT Calculator/Optimiser</title>
26-
</head>
27-
<body>
28-
<noscript>You need to enable JavaScript to run this app.</noscript>
29-
<div id="root"></div>
30-
<!--
23+
<title>ASX CGT Calculator/Optimiser</title>
24+
25+
</head>
26+
27+
<body>
28+
<noscript>You need to enable JavaScript to run this app.</noscript>
29+
<div id="root"></div>
30+
<script type="module" src="/src/main.jsx"></script>
31+
<!--
3132
This HTML file is a template.
3233
If you open it directly in the browser, you will see an empty page.
3334
@@ -37,5 +38,6 @@
3738
To begin the development, run `npm start` or `yarn start`.
3839
To create a production bundle, use `npm run build` or `yarn build`.
3940
-->
40-
</body>
41-
</html>
41+
</body>
42+
43+
</html>

0 commit comments

Comments
 (0)