Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default assetsPublicPath to './' instead of '/' #1526

Open
elainechang86 opened this issue Nov 25, 2020 · 0 comments
Open

set default assetsPublicPath to './' instead of '/' #1526

elainechang86 opened this issue Nov 25, 2020 · 0 comments

Comments

@elainechang86
Copy link

Problem :

I used vue-cli to create a project, then ran the build command and push the dist folder to branch "gh-pages".
After deploying on github pages, I got a few errors in the console which all shows

Failed to load resource: the server responded with a status of 404 (Not Found)

Solution :

I changed assetsPublicPath from '/' to './' in index.js.
And it worked.

Question :

Why don't set default assetsPublicPath to './' instead of '/' ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant