This commit is contained in:
Vivek Santayana 2022-08-25 10:50:43 +01:00
parent 712f7ed0ee
commit 837ad3e748
5 changed files with 15 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<script setup>
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import Navbar from './components/Navbar.vue'
import Navbar from '@/components/Navbar.vue'
</script>
<template>

View File

@ -3,7 +3,7 @@
<div class="flex items-center justify-between">
<!-- Logo -->
<div class="pt-2">
<img src="vite.svg" alt="Vite Logo" >
<img src="@/assets/vue.svg" alt="Vite Logo" >
</div>
<!-- Menu Items -->
<div class="hidden md:flex space-x-6">

View File

@ -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')

View File

@ -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 = [
{

View File

@ -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')
}
}
})