我正在尝试在 gh-pages 上发布我的应用程序,该应用程序基于 angular 7 跟随几篇文章,但没有解决我的问题,我尝试了以下步骤:
- npm i -g angular-cli-ghpages
- ng build --prod --base-href “<a href="https://username.github.io/repository_name/" rel="nofollow noreferrer">https://username.github.io/repository_name/”< /li>
- 呸
调查了 github 问题并遵循了步骤,但也没有帮助
https://github.com/angular-schule/angular-cli-ghpages/issues/37
ngh --dir dist/[PROJECTNAME]
我输入了上面的命令,它正在运行,没有任何控制台错误,但我的 gh-pages 仅在托管 url 显示自述文件