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 to control when Plugin triggers Restart (on add & delete not on Change) #25

Open
3 tasks done
Kingju777 opened this issue Jun 29, 2024 · 0 comments
Open
3 tasks done
Labels
enhancement New feature or request

Comments

@Kingju777
Copy link

Clear and concise description of the problem

I wish to restart the server only when a file is added or deleted not, when someone makes a change in the file.
When a file is added or deleted i need to do some Housekeeping to make my Application work.
And to trigger that i need to restart the Server.

restarting the server on change is just distracting for me, because it takes to long and repaints the screen a second timer

Suggested solution

please Add an additional Option that globally controls what is watched

updateOn?: "all"|"AddDelete"

more generally

updateOn?: {
    add:boolean,
    change:boolean,
    delete:boolean,// Vite calls this "unlink" and not delete
}




if you want i can implement the Change in your preferred way and open a PR.

Alternative

i can completely understand if this request is out of scope for this projekt.

Additional context

thank you very much for creating and maintaining this awesome Plugin.

Validations

@Kingju777 Kingju777 added the enhancement New feature or request label Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant