I have created n new angular app using angular-cli.
I completed the app and preview it using ng-serve, it is working perfectly.
After that I used ng build --
Check your index.html file and edit this line
Your content should load properly. You can then load styles globally
You should set base href as recommended by Johan
ng build --prod --bh /[your-project-folder-name]/dist/