How to access public directories through relative paths in production environments? #18172
Unanswered
AAABingBing
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I configured
base: './'
invite.config
The final construction product is:
But my project is not in the root directory, img absolute path access is invalid.
If I use
<img src="./logo.svg" />
in the development environment, I won't be able to preview the effect.How can I output the following method.
Beta Was this translation helpful? Give feedback.
All reactions