Skip to content
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

Bugfix: Allow clean shutdown of dev server #3349

Merged
merged 1 commit into from May 21, 2021
Merged

Conversation

drwpow
Copy link
Collaborator

@drwpow drwpow commented May 21, 2021

Changes

When starting the Snowpack dev server via Node.js, the shutdown() command doesn’t send the cleanup signal to all plugins (which is important if they spawned workers). This calls all plugins’ cleanup() methods before shutting down, making sure to kill any processes started.

Testing

Manually tested; mostly affects the Node.js API

Docs

@drwpow drwpow requested a review from a team as a code owner May 21, 2021 19:26
@vercel
Copy link

vercel bot commented May 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/5VP8GXPNh4f9iMzMCby6qWRGf7MD
✅ Preview: https://snowpack-git-dev-server-shutdown-pikapkg.vercel.app

Copy link
Contributor

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Nice! That was much easier than I expected.

@drwpow drwpow merged commit 398ad9f into main May 21, 2021
@drwpow drwpow deleted the dev-server-shutdown branch May 21, 2021 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants