<choosen-name>
in this post<choosen-name>
<github-username>.github.io
ng build --prod --output-path docs --base-href <choosen-name>
this creates source files in a docs folder in the apps root directory
index.html
file and rename the copy to 404.html
https://<github-username>.github.io/<choosen-name>