-
+
diff --git a/client/src/main.js b/client/src/main.js
index 0651c35..e1e7cb4 100644
--- a/client/src/main.js
+++ b/client/src/main.js
@@ -1,5 +1,5 @@
import { createApp } from 'vue'
-import './style.css'
-import App from './App.vue'
-import router from './router'
+import '@/style.css'
+import App from '@/App.vue'
+import router from '@/router'
createApp(App).use(router).mount('#app')
diff --git a/client/src/router/index.js b/client/src/router/index.js
index 3d995de..13091b2 100644
--- a/client/src/router/index.js
+++ b/client/src/router/index.js
@@ -1,8 +1,8 @@
import { createRouter, createWebHistory } from 'vue-router'
-import Home from '../views/Home.vue'
-import About from '../views/About.vue'
-import Quiz from '../views/Quiz.vue'
+import Home from '@/views/Home.vue'
+import About from '@/views/About.vue'
+import Quiz from '@/views/Quiz.vue'
const routes = [
{
diff --git a/client/vite.config.js b/client/vite.config.js
index 315212d..a3b75f8 100644
--- a/client/vite.config.js
+++ b/client/vite.config.js
@@ -1,7 +1,13 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
+import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [vue()]
+ plugins: [vue()],
+ resolve: {
+ alias: {
+ '@': path.resolve(__dirname, './src')
+ }
+ }
})