the changes do not take effect unless I run sail npm run dev
Well, you must compile your template in order for the changes to take effect. If you are working in local development, you should have hot-module reloading (HMR) available while Vite is running. If you are using WSL2, then there are specific instructions in the Laravel docs