i am having trouble understanding some basic instructions on publishing to github pages. There is a new way to publish Angular projects made with Angular Cli; i am following dir
Try this (for mac) :
$ npm install -g angular-cli-ghpages
Push your code to a github repo and then run this in terminal: ng build --env=prod --base-href "https://yourgithubusername.github.io/yourprojectname/"
here
'yourprojectname' is the name of your github repo, not your local
repo.
sudo angular-cli-ghpages
and enter password.