Angular-cli: why ng build is not detecting my file chnages whereas ng serve is working file.... Please help me.

Created on 23 Aug 2018  路  5Comments  路  Source: angular/angular-cli

why ng build is not detecting my file chnages whereas ng serve is working file.... Please help me.

Most helpful comment

You can watch with ng build --watch and it will watch your files.
I tested this right now it appears to be working.

If it's still not working then you need to provide more information such as the information you removed from the "New Issue" template.

All 5 comments

ng build isn't suppose to watch your files for changes. It simply compiles the app (once). You should read the cli documentation.

You can watch with ng build --watch and it will watch your files.
I tested this right now it appears to be working.

If it's still not working then you need to provide more information such as the information you removed from the "New Issue" template.

I'm sorry, but we can't reproduce the problem following the instructions you provided.
Remember that we have a large number of issues to resolve, and have only a limited amount of time to reproduce your issue.
Short, explicit instructions make it much more likely we'll be able to reproduce the problem so we can fix it.

If the problem persists, please open a new issue following our submission guidelines.

A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

Thank you so much. ng build --watch works for me.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rajjejosefsson picture rajjejosefsson  路  3Comments

daBishMan picture daBishMan  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

5amfung picture 5amfung  路  3Comments

gotschmarcel picture gotschmarcel  路  3Comments