The dist folder works normal on publishing server, but got error while i am publishing in github using gitpage, i had attached the link to my repo for code information.
The error is solved using below steps...
1.) change <base href="https://username.github.io/reponame/"> to <base href="/https://username.github.io/reponame/">
by putting / at the starting it works.