Skip to content

Commit

Permalink
fix joeldenning#13 (solution without js import of asset)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Fluhrer committed Apr 22, 2022
1 parent 4075525 commit 392867d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/App.vue
@@ -1,9 +1,5 @@
<script setup>
import logo from "./assets/logo.png"
</script>

<template>
<img alt="Vue logo" :src="logo" />
<img alt="Vue logo" src="@/assets/logo.png" />
<HelloWorld msg="Hello Vue 3.0 + Vite" />
</template>

Expand Down
8 changes: 7 additions & 1 deletion 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: {
Expand All @@ -19,4 +20,9 @@ export default {
}
}
})],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
}

0 comments on commit 392867d

Please sign in to comment.