Skip to content

Commit

Permalink
Set base path for vite build
Browse files Browse the repository at this point in the history
The GitHub page base URL is prefixed with the repo name.
  • Loading branch information
battesonb committed Jun 13, 2023
1 parent 62215c9 commit 50bcd7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
<title>TopCodes WASM example</title>
</head>
<body>
<noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
Expand Down
1 change: 1 addition & 0 deletions www/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";

const config: UserConfigExport = {
base: "/topcodes-wasm-rs/",
plugins: [
wasm(),
topLevelAwait(),
Expand Down

0 comments on commit 50bcd7e

Please sign in to comment.