Github project deployed to achieve online viewing

Github project deployed to achieve online viewing

1. Create a repository (Create a repository)

Note Create a file called username.GitHub.ionew store, which usernameis on your GitHub用户名

  

2. The local repository cloned (Clone the repository)

Into the store the project folder, and then submit the project to the new repository.

<! - now ready for viewing online, address https://username.github.io, ->

3. The packaged project documents submitted

By npm run build the project will need to deploy the package to generate the dist folder, as follows, copy the following files to a local warehouse, and submitted to the online repository. PS: Attention must beindex.html

  

4. At this time, our online deployment program has been completed slightly github

Enter the browser https://username.github.io note github username is your user name

 

Guess you like

Origin www.cnblogs.com/xin-jing/p/11991889.html