ng build
ng build --base-href=/angular/
(最後のスラッシュは忘れずに!)
ng build <プロジェクト名>
<プロジェクト名> には angular.json の
{
"projects": {
"my-app": {
}
}
}
で指定した my-app などの文字列を指定します。
なおプロジェクトは --projectで指定してもOK
$ npx ng build filter-keyup-events
ng help
ng help で build に関する記述を見てみます。
Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.