Skip to content

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

@elainechang86

Description

@elainechang86

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 '/' ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions