Vuepress: png can not found in assets img

Created on 27 Apr 2018  路  2Comments  路  Source: vuejs/vuepress


I use the default theme config, but the img hero.png can not resolve, when i open the link http://localhost:8080/ , the console show an error"hero.png:1 GET http://localhost:8080/hero.png 404 (Not Found)", the location of hero.png is ".\vuepress\docs", the README.md use "heroImage: ./hero.png".

Most helpful comment

The file needs to be in the .vuepress/public, not .vuepress/docs.

All 2 comments

The file needs to be in the .vuepress/public, not .vuepress/docs.

it's work, thank you so much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ederchrono picture ederchrono  路  3Comments

tinchox5 picture tinchox5  路  3Comments

higuoxing picture higuoxing  路  3Comments

lileiseven picture lileiseven  路  3Comments

harryhorton picture harryhorton  路  3Comments