Skip to content

Commit 694b73d

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular-devkit/build-angular): exit dev-server when CTRL+C is pressed
Since version 4, webpack-dev-server by default will shutdown gracefully. This results in `CTRL+C` needed to be pressed multiple times to exit the process. See: https://github.com/webpack/webpack-dev-server/blob/c76b6d11a3821436c5e20207c8a38deb6ab7e33c/lib/Server.js#L1801-L1827 Closes #22216 (cherry picked from commit 4fcfc37)
1 parent f5badf2 commit 694b73d

File tree

1 file changed

+4
-0
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+4
-0
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export async function getDevServerConfig(
7474
},
7575
],
7676
},
77+
// When setupExitSignals is enabled webpack-dev-server will shutdown gracefully which would
78+
// require CTRL+C to be pressed multiple times to exit.
79+
// See: https://github.com/webpack/webpack-dev-server/blob/c76b6d11a3821436c5e20207c8a38deb6ab7e33c/lib/Server.js#L1801-L1827
80+
setupExitSignals: false,
7781
compress: false,
7882
static: false,
7983
server: getServerConfig(root, wco.buildOptions),

0 commit comments

Comments
 (0)