Allows linking to assets without using /public
folder.
<a href="../assets/logo.png">
<img src="../assets/logo.png">
</a>
Results in:
<a href="../assets/logo.png">
<img src="/img/logo.4f17609b.png">
</a>
Should result in:
<a href="/img/logo.4f17609b.png">
<img src="/img/logo.4f17609b.png">
</a>
Use require
to use the webpack loaders:
<a :href="require('../assets/logo.png')">
https://vue-loader.vuejs.org/options.html#transformasseturls
@yyx990803 how to change these in vue.config.js please advice. I am new to vue.
Most helpful comment
Use
require
to use the webpack loaders: