Skip to content

Commit 4fcfc37

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
1 parent e0cf809 commit 4fcfc37

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
@@ -75,6 +75,10 @@ export async function getDevServerConfig(
7575
},
7676
],
7777
},
78+
// When setupExitSignals is enabled webpack-dev-server will shutdown gracefully which would
79+
// require CTRL+C to be pressed multiple times to exit.
80+
// See: https://github.com/webpack/webpack-dev-server/blob/c76b6d11a3821436c5e20207c8a38deb6ab7e33c/lib/Server.js#L1801-L1827
81+
setupExitSignals: false,
7882
compress: false,
7983
static: false,
8084
server: getServerConfig(root, wco.buildOptions),

0 commit comments

Comments
 (0)