Replies: 1 comment
-
|
Unfortunately there is no direct way. Although there might be some alternatives like copy that file to output directory after build, or maybe instead of configuring srcDir, configure rewrites, then you can have root/public/images 👀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my
config.mtsI have the following:As you can see I have used the
srcDirproperty to move the root of my MD content to<project-root>/src. I did this because I want to isolate the site directory structure and not mix them in with the other files and dirs in the<project-root>.Unfortunately, in order for vitepress to find the
logo.svgfile, it apparently has to be here:<project-root>/src/public/logo.svgI have tried moving the file to
<project-root>/images/logo.svg(where the rest of my images reside) and adjusting theconfig.mtstoBut vitepress does not seem to find the file.
Is there some way to set the
logoproperty so that I can place mylogo.svgfile outside<project-root>/src/public/(and, indeed, outside<project-rrot>/src/entirely)?Beta Was this translation helpful? Give feedback.
All reactions