Hook into angular-cli build watch


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?


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.

Answered By – EricJ

Answer Checked By – Senaida (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.