diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-07-12 14:07:10 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-07-12 14:07:10 +0200 |
commit | eb030922866f1e753162d99ea6b25a4f4e941b05 (patch) | |
tree | b77969b24a31cdb3547e05bcfda196bf08cc2546 | |
parent | 9582b1871ac63d1e625ccf6c221bd1248a1c9d03 (diff) | |
download | homer-eb030922866f1e753162d99ea6b25a4f4e941b05.tar.gz homer-eb030922866f1e753162d99ea6b25a4f4e941b05.tar.zst homer-eb030922866f1e753162d99ea6b25a4f4e941b05.zip |
Fix theming issue & subfolder hosting
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | src/assets/app.scss | 2 | ||||
-rw-r--r-- | src/main.js | 2 | ||||
-rw-r--r-- | vite.config.js | 1 |
4 files changed, 4 insertions, 3 deletions
@@ -9,7 +9,7 @@ | |||
9 | <title>Homer</title> | 9 | <title>Homer</title> |
10 | </head> | 10 | </head> |
11 | <body> | 11 | <body> |
12 | <div id="app"></div> | 12 | <div id="app-mount"></div> |
13 | <script type="module" src="/src/main.js"></script> | 13 | <script type="module" src="/src/main.js"></script> |
14 | </body> | 14 | </body> |
15 | </html> | 15 | </html> |
diff --git a/src/assets/app.scss b/src/assets/app.scss index 5102f93..d112482 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss | |||
@@ -13,7 +13,7 @@ | |||
13 | text-overflow: ellipsis; | 13 | text-overflow: ellipsis; |
14 | } | 14 | } |
15 | 15 | ||
16 | html, body, body #app { | 16 | html, body, body #app-mount, body #app { |
17 | height: 100%; | 17 | height: 100%; |
18 | background-color: var(--background); | 18 | background-color: var(--background); |
19 | } | 19 | } |
diff --git a/src/main.js b/src/main.js index 164d290..a1d7b47 100644 --- a/src/main.js +++ b/src/main.js | |||
@@ -10,4 +10,4 @@ app.component("DynamicStyle", (_props, context) => { | |||
10 | return h("style", {}, context.slots); | 10 | return h("style", {}, context.slots); |
11 | }); | 11 | }); |
12 | 12 | ||
13 | app.mount("#app"); | 13 | app.mount("#app-mount"); |
diff --git a/vite.config.js b/vite.config.js index 46fe909..cee8727 100644 --- a/vite.config.js +++ b/vite.config.js | |||
@@ -6,6 +6,7 @@ import vue from "@vitejs/plugin-vue"; | |||
6 | 6 | ||
7 | // https://vitejs.dev/config/ | 7 | // https://vitejs.dev/config/ |
8 | export default defineConfig({ | 8 | export default defineConfig({ |
9 | base: "", | ||
9 | build: { | 10 | build: { |
10 | assetsDir: "resources", | 11 | assetsDir: "resources", |
11 | }, | 12 | }, |