Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2022

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 Candidates for the Q3 2022 fix-it 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
2022Q3 Fixit Candidates for the Q3 2022 fix-it 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