Restart Vite when a page entrypoint is added or removed
What does this MR do and why?
This change restarts Vite server as soon as you add or delete a new page entrypoint in these paths:
app/assets/javascripts/pages/
ee/app/assets/javascripts/pages/
jh/app/assets/javascripts/pages/
How to set up and validate locally
- Go to notifications page: https://gdk.test:3443/-/profile/notifications
- Add
app/assets/javascripts/pages/profiles/index.js
withconsole.log(1)
- Wait for Vite to restart
-
1
should appear in the console once you refresh the page