Skip to content

Commit 4a4b1f6

Browse files
committed
fix: move the assets into the src and reference them relatively
When the app's build is deployed in github pages under the subdir /ner-annotator/, the image files aren't loading as they are referenced using absolute paths in the components. Vite build doesn't automatically update absolute paths to include the BASE. So the files are moved into the src dir and referenced using relative paths.
1 parent cda0ee8 commit 4a4b1f6

File tree

14 files changed

+15
-23
lines changed

14 files changed

+15
-23
lines changed

docs/assets/index-BXYN3bSs.js renamed to docs/assets/index-Bz3un_3O.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/assets/styles.scss

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<title>NER Annotator for SpaCy</title>
8-
<script type="module" crossorigin src="/ner-annotator/assets/index-BXYN3bSs.js"></script>
8+
<script type="module" crossorigin src="/ner-annotator/assets/index-Bz3un_3O.js"></script>
99
<link rel="stylesheet" crossorigin href="/ner-annotator/assets/index-eh-puVY4.css">
1010
</head>
1111
<body>

public/assets/icon_32.png

-2.22 KB
Binary file not shown.

public/assets/styles.scss

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)