bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.78k stars 1.32k forks source link

problem with background url #61

Closed Mobeidat closed 5 years ago

Mobeidat commented 6 years ago

Using the @assets alias on background-image: CSS attribute is not working

it's not reading the root path

ex: background-image: url('@assets/images/1.jpg');

the image will not be rendered on the browser

chrisvfritz commented 6 years ago

Try:

background-image: url('~@assets/images/1.jpg');

(With the tilde.)

I'll add a note about this to the docs.