search

Home  >  Q&A  >  body text

vue.js - Submit the project to github, how to achieve online preview effect

Project address: https://github.com/wq93/eleme

给我你的怀抱给我你的怀抱2750 days ago1054

reply all(4)I'll reply

  • 漂亮男人

    漂亮男人2017-06-20 10:07:56

    Obviously you have to build it before you can preview it.

    1. Directly transfer the dist to github, and then access it using cdn. Such as this

    2. Build a server yourself and deploy the output after the build.

    reply
    0
  • 滿天的星座

    滿天的星座2017-06-20 10:07:56

    For purely static purposes, you can use github pages

    reply
    0
  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-20 10:07:56

    If there is no background interaction involved, you can directly run npm run dev locally during development, so that the local access localhost:8080 is the actual effect (the default is to mount port 8080 with hot update). When you submit to GitHub, run npm run build locally and a dist folder will be generated. Just submit the dist folder.

    reply
    0
  • 阿神

    阿神2017-06-20 10:07:56

    Use github pages directly

    reply
    0
  • Cancelreply