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

Add option that prevents file removal #20

Merged
merged 1 commit into from
Nov 13, 2022

Conversation

timopruesse
Copy link
Contributor

Hey,

first of all, thanks for creating this adapter. It's quite useful.

I had an issue using it in the 'watch mode', though. I have some other watch commands running as well. When a file change is detected and the adapter rebuilds the output, it first removes all files in the build directory. This, of course, also removes all other files generated by the other commands.

I added an option to disable that behavior if wanted. I named it like it is named in the vite build config emptyOutDir.

Add option that prevents file removal.
@timopruesse timopruesse changed the title Add option that prevents file removal (#1) Add option that prevents file removal Nov 13, 2022
@michmich112
Copy link
Owner

Hey @Chroma91
Thank you for this contribution!
Definitely see the problem, thanks for solving it!
I'm merging your PR into the main branch and will update the Readme.md to add documentation around the emptyOutDir option.
This will be the core of the v1.4.0 release as it builds upon the existing configuration options without breaking changes.
Thank you once again!

@michmich112 michmich112 merged commit 0a97f7c into michmich112:main Nov 13, 2022
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