Angular-cli: 'ng build' provide flag to build just changed files

Created on 17 Mar 2017  路  4Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

  • [x] feature request

Versions.


Output from: ng --version:
angular-cli: 1.0.0-beta.19-3
node: 6.2.2
os: linux x64

Repro steps.


I'm using angular 2 in an maven java project and every time that I'm building my java project the maven calls 'ng build' the problem with that is that every time ng build builds the angular 2 project even if nothing was changed, is there any flag that ng build builds just if something was changed (like the watch flag after the first call, but without watching)?

Most helpful comment

I am facing the same issue and would really like to have a --incremental option.

All 4 comments

We only have the watch flag. You can maybe have a solution outside of the CLI (or by using ng eject) by using https://github.com/mzgoddard/hard-source-webpack-plugin.

I am facing the same issue and would really like to have a --incremental option.

Me 2, I have a project with multiple apps, would be great to have --incremental option to only build apps with modified files.

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