You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 '/' ?
The text was updated successfully, but these errors were encountered:
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
Solution :
I changed assetsPublicPath from '/' to './' in index.js.
And it worked.
Question :
Why don't set default assetsPublicPath to './' instead of '/' ?
The text was updated successfully, but these errors were encountered: