I want to use a svg image from my assets folder in one of my components as a background-image. Here is an example of my component:
<template>
<div class="container"></div>
</template>
<script>
export default {
name: 'component'
}
</script>
<style scoped lang="scss">
.container {
height: 40px;
width: 40px;
background-image: url('@/assets/image.svg');
}
</style>
But the image doesn't show. The Path is correct. Where is my mistake? Thanks for your help.