assetPrefix
and pathPrefix
can't works seamlessly.
#33107
Unanswered
jiusanzhou
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, I'm building landing pages for a github repository, and which deployed in gh-pages. So I must set
pathPrefix
as the repo name, then I can visit the page by url:https://MYDOMAIN/REPONAME
When I use
cdn.jsdelivr.net
as a CDN provider, setting theassetPrefix
ashttps://cdn.jsdelivr.net/gh/USERNAME/REPONAME@gh-pages
. Things won't work well.I think we should make this more configurable. In normal situation, ask users to set
assetPrefix
endswithpathPrefix
manually.Change the
getPublicPath
function in get-public-path.ts like bellow:Beta Was this translation helpful? Give feedback.
All reactions