I don't want to use serve, I know it watches for changes, builds and serves.
I want to build upon changes.
According to "ng help", build takes parameter --watch
ng build Builds your app and places it into the output
path (dist/ by default).
--watch (Boolean) (Default: false)
aliases: -w --watcher (String)
I tried both -w and --watcher but it just gives error.
>ng build -w
Path must be a string. Received null
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…