Skip to content

fix(@angular-devkit/build-angular): exit dev-server when CTRL+C is pressed#23438

Merged
clydin merged 1 commit intoangular:mainfrom
alan-agius4:dev-server-shutdown
Jun 27, 2022
Merged

fix(@angular-devkit/build-angular): exit dev-server when CTRL+C is pressed#23438
clydin merged 1 commit intoangular:mainfrom
alan-agius4:dev-server-shutdown

Conversation

@alan-agius4
Copy link
Collaborator

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

…essed

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 angular#22216
@alan-agius4 alan-agius4 added 2022Q3 Fixit target: patch This PR is targeted for the next patch release labels Jun 27, 2022
@alan-agius4 alan-agius4 marked this pull request as ready for review June 27, 2022 07:43
@alan-agius4 alan-agius4 requested a review from clydin June 27, 2022 08:09
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jun 27, 2022
Copy link
Member

@clydin clydin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
We should consider a signal-based test at some point for this.

@alan-agius4
Copy link
Collaborator Author

LGTM.
We should consider a signal-based test at some point for this.

Good idea.

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 27, 2022
@clydin clydin merged commit 4fcfc37 into angular:main Jun 27, 2022
@alan-agius4 alan-agius4 deleted the dev-server-shutdown branch June 27, 2022 15:29
@danielehrhardt
Copy link

Nice! Thought the MR will be way more big than this ☺️

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Angular 13 CLI not stopping after ctrl + c

3 participants