Skip to content

Commit

Permalink
Use relative paths, so the site can be published at a URL that is not…
Browse files Browse the repository at this point in the history
… the domain root
  • Loading branch information
floscher committed Aug 26, 2024
1 parent 2ad85cb commit ea0fac0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<!DOCTYPE html>
<script type="module" src="/src/sipgator-app.ts"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/xml+svg" href="/favicon.svg">
<link rel="manifest" href="/app.webmanifest">
<link rel="icon" type="image/xml+svg" href="./favicon.svg">
<link rel="manifest" href="./app.webmanifest">
<title>Sipgator</title>
<style>
body.dark * {
Expand Down Expand Up @@ -82,7 +83,6 @@
--surface-container-highest:#ebe1d9;
}
</style>
<script src="/src/sipgator-app.ts" type="module"></script>
<link href="/beercss/beer.min.css" rel="stylesheet">
<link href="./beercss/beer.min.css" rel="stylesheet">
<!--<script src="/node_modules/beercss/dist/cdn/beer.min.js"></script>-->
<sipgator-app></sipgator-app>
7 changes: 5 additions & 2 deletions web/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { viteStaticCopy } from "vite-plugin-static-copy"
import compression from "vite-plugin-compression2"
export default {
import { defineConfig } from "vite"

export default defineConfig({
base: "",
plugins: [
viteStaticCopy({
targets: [
Expand All @@ -25,4 +28,4 @@ export default {
algorithm: "brotliCompress", exclude: [/\.br$/, /\.gz$/]
})
]
}
})

0 comments on commit ea0fac0

Please sign in to comment.