From 392867d07a8e88e49222a4db982f038e0417e0ad Mon Sep 17 00:00:00 2001 From: Jonas Fluhrer Date: Fri, 22 Apr 2022 08:20:17 +0200 Subject: [PATCH] fix #13 (solution without js import of asset) --- src/App.vue | 6 +----- vite.config.js | 8 +++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 223ec29..6172baf 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,5 @@ - - diff --git a/vite.config.js b/vite.config.js index 1dd3dd0..142a7b0 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,6 +1,7 @@ +import { fileURLToPath, URL } from "url"; import vue from '@vitejs/plugin-vue' -const BASE_URL = 'http://localhost:3000' +const BASE_URL = 'http://localhost:3000/' export default { rollupOptions: { @@ -19,4 +20,9 @@ export default { } } })], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), + }, + }, } \ No newline at end of file