Skip to content

20230226: Deployar Angular en gh-pages

  • Instalo el módulo gh-pages
  • En package.json, agrego los scripts:
json
{
	"build-gh": "ng build --base-href https://akobashikawa.github.io/myproject/",
	"deploy-gh": "gh-pages --dist dist/myproject --branch gh-pages"
}
ts
@NgModule({
  imports: [RouterModule.forRoot(routes, {
	useHash: true
  })],
  exports: [RouterModule]
})