Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
refactor: use vite-plugin-pwa to generate assets
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Feb 23, 2024
1 parent 3491a25 commit ffd2209
Show file tree
Hide file tree
Showing 119 changed files with 486 additions and 470 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
run: bun install --frozen-lockfile

- name: Lint & Vite Build
run: bun --bun run turbo build
# Sharp is buggy w/Bun.
run: bun run turbo build

- name: Redirect 404 to Index for SPA
run: cp dist/index.html dist/404.html
Expand Down
Binary file modified bun.lockb
Binary file not shown.
8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,11 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="/AppImages/android/android-launchericon-512-512.png"
rel="shortcut icon"
/>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css" />
<link
rel="stylesheet"
href="https://www.w3schools.com/lib/w3-theme-black.css"
/>
<link
href="https://www.psdr3.org/images/logos/psd.png"
rel="shortcut icon"
/>
<script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script src="/src/script.ts" type="module"></script>
<title>PHS Map</title>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@types/bun": "^1.0.7",
"@types/eslint": "^8.56.3",
"@types/pathfinding": "^0.0.9",
"@vite-pwa/assets-generator": "^0.2.4",
"browserslist": "^4.23.0",
"browserslist-to-esbuild": "^2.1.1",
"eslint": "^8.56.0",
Expand All @@ -54,7 +55,7 @@
"turbo": "^1.12.4",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite-plugin-pwa": "^0.18.2",
"vite-plugin-pwa": "^0.19.0",
"vite-plugin-webfont-dl": "^3.9.1"
},
"scripts": {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit ffd2209

Please sign in to comment.