search

Home  >  Q&A  >  body text

vue.js - Why can't I preview my vue project when I upload it to github?


The preview is blank.

PHP中文网PHP中文网2749 days ago1351

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-05-25 15:10:30

    You need to deploy the static files generated by packaging to the gh-pages branch to preview. Even if the vue source code is deployed to the gp-pages branch, Github does not support direct compilation of the vue project. You need to compile it locally and submit it.

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-25 15:10:30

    You need to submit the locally compiled files to github,
    npm run build

    After uploading, it should be like this, not yours

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-25 15:10:30

    If you want to see the page effect, check how to use github pages. If you want to display the introduction in the library, edit README.md on the current page
    If the address points to a file, the code inside will be displayed, and the directory will display README.md

    reply
    0
  • Cancelreply