用vue cli构建部署的Gh页面不起作用

时间:2020-11-01 17:28:49

标签: vue.js github github-pages vue-cli

我尝试将我的应用程序部署到gh页,我的vue.config.js如下:

module.exports = {
    publicPath: process.env.NODE_ENV === 'production'
        ? '/vue-graphql-jobs/'
        : '/'
}

回购链接:https://github.com/MateuszKawka/vue-graphql-jobs/

gh页链接:https://mateuszkawka.github.io/vue-graphql-jobs/

我做yarn build,然后部署:

git add -f dist && git commit -m "gh-pages deploy"
git subtree push --prefix dist origin gh-pages

但这不起作用,有人可以帮助我吗?

警告:

Loading failed for the "script" element with source "https://mateuszkawka.github.io/js/chunk-vendors.8b8c4598.js". vue-graphql-jobs:1:1
Loading failed for the "script" item with the source "https://mateuszkawka.github.io/js/app.38a7af0d.js"

0 个答案:

没有答案