【发布时间】:2018-06-13 13:58:02
【问题描述】:
我无法理解一些关于发布到 github 页面的基本说明。有一种新方法可以发布使用 Angular Cli 制作的 Angular 项目;我正在遵循this page 的新命令angular-cli-ghpages 的指示:
Execute angular-cli-ghpages in order to deploy the project with a build from dist folder.
Note: you have to create the dist folder in before (e.g. ng build --prod)
Usage:
ng build --prod --base-href "https://USERNAME.github.io/REPOSITORY/"
angular-cli-ghpages [OPTIONS]
我为我的项目创建了一个 dist 文件夹,然后运行 ng 构建代码。终端显示所有块都已呈现,但我找不到 github 页面的链接。我在 github 上查看我的存储库,好像什么都没发生。这是因为我需要 cd 到一个特定的文件夹来执行 angular-cli-ghpages 吗?这是我的repo,非常感谢任何帮助。
【问题讨论】:
标签: angular angular-cli github-pages