Nuxt/test/fixtures/basic/pages/assets.vue

27 lines
494 B
Vue
Raw Normal View History

<template>
<div>
<img src="~/assets/logo.svg" class="h-20 mb-4">
<img src="/public.svg" class="h-20 mb-4">
<img :src="logo" class="h-20 mb-4">
</div>
</template>
<script setup>
import logo from '~/assets/logo.svg'
</script>
<style>
#__nuxt {
background-image: url('~/assets/logo.svg');
@font-face {
src: url("/public.svg") format("woff2");
}
}
body {
background-image: url('/public.svg');
@font-face {
src: url('/public.svg') format('woff2');
}
}
</style>