10 November 2018

Deploying an Angular App to Github Pages

angular-cli-ghpages
Deploying an Angular App to Github Pages

Installation & Setup

npm i angular-cli-ghpages --save-dev

Usage

Usage:
1, ng build --prod --base-href "https://<user-name>.github.io/<repository-name>/"
2, ngh (The goal is to commit and push to the gh-pages)
Or:
1, ng build --prod --base-href "/<repository-name>/"
2, ngh
Or Stays Untouched)
1, ng build --prod
2, ngh
Usage With Angular Cli 6 Or Higher
npx ngh --dir=dist/<project-name>

 Github master gh-pages | demo | create my-app

/*********ISSUE*********/
Note

0 nhận xét:

Post a Comment

 

BACK TO TOP

Xuống cuối trang