The use of @ in ways vuejs?

When I specify the path to the file, for example to the picture, I can use the dog as a link to the src directory. For example
<img src="@/assets/logo.svg">
import the Footer from '@/components/Footer'
But to use such a dog in the style for some reason can not. Maybe there's some option?
I have such project structure:
And styles inside these components are obtained by the way of the view
.element {
 background: url('../../assets/images/logo.jpg');

Very uncomfortable and not flexible. How can I fix it?
March 12th 20 at 08:08
1 answer
March 12th 20 at 08:10
.element {
 background: url('~@/assets/images/logo.jpg');
Magic! And where is this written? Can't find in the documentation. - cassidy commented on March 12th 20 at 08:13
@cassidy, XS )) He once accidentally googled )) - Charlie.Baumba commented on March 12th 20 at 08:16

Find more questions by tags Vue.js