[Vuejs]-Webpack inline image path

0πŸ‘

βœ…

An absolute path should contain more info than what you have above which is the reason for the 404, it should include the protocol i.e http, file

Relative

<img src="images/apps/small-logo/android-text-logo.png" alt="img">

Absolute

<img src="http://example.com/images/apps/small-logo/android-text-logo.png" alt="img">
<img src="file:///some_random_path/images/apps/small-logo/android-text-logo.png" alt="img">

If you want to use an absolute path, make sure to include the protocol and necessary paths.

For relative paths you can define the base tag in html like this:

<base href="/some_random_path/" />

Leave a comment