Skip to content

Commit

Permalink
trying again with vite-static-copy plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
39bytes committed Aug 19, 2024
1 parent bdae33f commit f187ab5
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 4 deletions.
3 changes: 2 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
<link rel="icon" type="image/png" href="/crab.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>nes.rs</title>
<script type="module" src="coi-serviceworker.min.js"></script>
<!-- <script src="coi-serviceworker.min.js"></script> -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<script type="module" src="/src/bootstrap.ts"></script>
Expand Down
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@types/audioworklet": "^0.0.59",
"typescript": "^5.5.3",
"vite": "^5.4.1",
"vite-plugin-static-copy": "^1.0.6",
"vite-plugin-wasm": "^3.3.0"
}
}
234 changes: 234 additions & 0 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions web/src/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "../style.css";

// A dependency graph that contains any wasm must all be imported
// asynchronously. This `bootstrap.js` file does the single async import, so
// that no one else needs to worry about it again.
Expand Down
Loading

0 comments on commit f187ab5

Please sign in to comment.