Angular-cli: "--watch" added to ng build [project]

Created on 19 Sep 2018  路  5Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Command (mark with an x)

- [ ] new
- [x ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Desired functionality

What would like to see implemented?

--watch added to ng build [project]

ng build projectName --watch

What is the usecase?

When building projects to be used in other apps, this command needs to be run manually each time.

more info

Most helpful comment

Works in Angular 7+ FYI. Update all dependencies of course.

All 5 comments

We are not understanding the issue here, as ng build --watch already exists.

I'm sorry, but we don't understand the problem you are reporting.

If the problem persists, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use ng new repro-app to create a new project where you reproduce the problem.

Hi Alan, not regular ng build --watch

What i meant was doing this with libraries:

Try building a library with:

ng build my-library --watch

ofcourse you need a library within your app, ng generate library my-library

Hope that makes sense

Works in Angular 7+ FYI. Update all dependencies of course.

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