-
Notifications
You must be signed in to change notification settings - Fork 155
feat(@angular-devkit/build-angular): add watch mode to server #863
Conversation
@Toxicable I got a notion of this PR on your talk at ng-air today - great job! I'm wondering if this is a generic solution, so it can be used for building other apps then universal as well based on file changes. I'm after a watch mode for libraries, see #730. Ideally, we can configure watch modes for specific apps/project. |
@tobi-or-not-tobi No this wont help with your issue sorry. |
Is it possible to have some explanation or info about "further discussion"? Would be good to have this option soon. |
@kondi we discussed this last friday and I think this PR is good to get in as is. |
It doesn't seem to be working correctly for me with "server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/server",
"main": "src/main.server.ts",
"tsConfig": "src/tsconfig.server.json",
"watch": true
}
} There is no error when I run:
it compiles but it then exits immediately, not entering For comparison, "builder": "@angular-devkit/build-angular:browser" |
Comparing the code of the browser and server parts I see that the browser one doesn't complete the observable in watch mode: |
@mgol Yup it was the problem, just needed a simple check. |
Adds watch mode into server build