# 20230226: Deployar Angular en gh-pages

javascript angular github
  • Instalo el módulo gh-pages
  • En package.json, agrego los scripts:
{
	"build-gh": "ng build --base-href https://akobashikawa.github.io/myproject/",
	"deploy-gh": "gh-pages --dist dist/myproject --branch gh-pages"
}
@NgModule({
  imports: [RouterModule.forRoot(routes, {
	useHash: true
  })],
  exports: [RouterModule]
})
Última versión: 4/13/2024, 4:27:12 AM