You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b0358d8
Browse filesBrowse the repository at this point in the historyBrowse files
feat(@angular/build): add manualRebuild option to the dev-server
When `manualRebuild` is enabled, the development server keeps tracking file
changes but no longer rebuilds automatically on every change. Instead, all
pending changes are accumulated and rebuilt incrementally (reusing the
in-memory build state) only when a rebuild is explicitly requested, either by
sending a `POST` request to the `/__ng_rebuild` endpoint or by pressing `b`
in the terminal.
The endpoint responds once the rebuild has completed with a JSON object
containing the outcome (`success`, `failure`, `no-changes` or `cancelled`).
Cross-origin browser requests to the endpoint are rejected.
This is useful when many files are edited in a batch (for example by AI
coding agents) to avoid repeated intermediate rebuilds without having to
restart the development server and lose the incremental build state.
Closes angular/angular#72079
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/angular/build/src/builders/dev-server/schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,11 @@
102
102
"type": "number",
103
103
"description": "Enable and define the file watching poll time period in milliseconds."
104
104
},
105
+
"manualRebuild": {
106
+
"type": "boolean",
107
+
"description": "Rebuild only when explicitly requested instead of on every file change. File changes are still tracked while in watch mode, and all pending changes are rebuilt incrementally when a `POST` request is sent to the `/__ng_rebuild` endpoint of the development server or the `b` key is pressed in the terminal. This option has no effect when 'watch' is disabled.",
108
+
"default": false
109
+
},
105
110
"inspect": {
106
111
"default": false,
107
112
"description": "Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are enabled.",
0 commit comments