[Fixed] Hook into angular-cli build watch

Issue

I’d like to to know if it is possible to hook into angular-cli’s build/watch command:

ng build /w

which generates files and drops them in the project’s /dist folder

I just want after the build completes to copy the dist folder to another directory, is it possible?

Solution

If you just want to change the folder that it outputs to you can set that in the angular-cli.json file. There is an ‘outdir‘ setting in that you can change to be the folder you want it to output to.

Leave a Reply

(*) Required, Your email will not be published