【发布时间】:2020-05-20 22:42:18
【问题描述】:
我更新了一个预先存在的 vuepress 文档,该文档在 localhost:8080/ 上部署时按预期运行和工作,但是一旦我将更新推送到 gh hub 页面,它就无法正确显示。
我用来部署的代码:
set -e
npm run docs:build
cd docs/.vuepress/dist
git init
git add -A
git commit -m "Deploy documentation"
git push-f git@github.com:NAME/REPO.git master:gh-pages
我在运行时或部署期间没有错误消息。 但是当我查看 github 上的实际文档时,它显示得很有趣。并且链接不起作用....当我检查控制台上的页面开发环境时出现 404 错误...似乎资产中的 dist.js 文件可能有问题....
不知道如何解决这个问题...请帮助。谢谢!
图像 1:显示黑色块 图像 2 开发控制台中的错误 (仅在控制台中构建期间我没有错误消息)
【问题讨论】:
标签: github github-pages vuepress