npm i -g angular-cli-ghpages
-
Go to package.json, and add a new script in the scripts section
"deploy:gh": "ng build --configuration production --base-href='https://username.github.io/app-name/' && ngh" -
Run command
npm run deploy:gh
| Name | Name | Last commit date | ||
|---|---|---|---|---|
npm i -g angular-cli-ghpages
Go to package.json, and add a new script in the scripts section "deploy:gh": "ng build --configuration production --base-href='https://username.github.io/app-name/' && ngh"
Run command npm run deploy:gh