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

feat: cleanup dist directories when dev mode ends #252

Merged

Conversation

jacob-ebey
Copy link
Member

@jacob-ebey jacob-ebey commented Aug 20, 2021

Currently we have massive build folders that are left around after a dev server instance is closed. This is due to us writing uniquely hashed files per incremental build. Let's just fully empty the build folders for now.

@@ -76,6 +77,11 @@ export async function watch(
})
);

signalExit(() => {
Copy link
Member Author

Choose a reason for hiding this comment

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

signal-exit doesn't seem to support async here. Without sync the directories are not cleaned up.

@mjackson mjackson merged commit 996af57 into dev Aug 20, 2021
@jacob-ebey jacob-ebey deleted the jacob/rem-187-cleanup-dist-directories-when-dev-server branch August 25, 2021 17:49
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.

2 participants