Project address: https://github.com/wq93/eleme
漂亮男人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.
女神的闺蜜爱上我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.