I would like to do the same, as I could in the good old tsc
times: simply calling a tsc -w
, and in the case of a changed file, it will be on the fly recompilated.
Unfortunately, ngc
doesn't even seem to react anything to the -w
flag, and even its possible command line arguments are completely undocumented.
But, ng build
has a --watch
flag, while it can create also AOT builds. Thus, probably a watch-mode ngc
is possible.
But how?