Public
The easiest way is to the images at /docs/.vuepress/public
You can refer to the images in markdown via
NOTE: There is no compilation checking, so it could refer to a broken link.
Relative Path
Create an assets folder at /docs/assets/img.
You can refer to the images in docs/README.md markdown via
If you the markdown is in a sub path (e.g. docs/pages/README.md)
You can also create a local img directory for pages at docs/pages/img.
NOTE: Go through Webpack with compilation path checking and hash path (e.g. /assets/img/logo.5b1898ed.svg)
Webpack Alias
Edit docs/.vuepress/config.js.
const path = require("path");module.exports = {  configureWebpack: {    resolve: {      alias: {        '@assets': path.resolve(__dirname,"../assets")      }    }  }}Store images at /docs/assets/img.
Link to images in markdown.
NOTE: You need to restart yarn docs:dev for alias changes to be recognized and take effect.
NOTE: It works in sub path markdown (e.g. docs/pages/README.md) without the need for relative path.
NOTE: It works in components as well (e.g. <img src="~@assets/img/logo.svg" alt="Logo">)
NOTE: Go through Webpack with compilation path checking and hash path (e.g. /assets/img/logo.5b1898ed.svg)
References: