Mini-hmr Vite is very popular now, so I created this repo, which shows how hmr works in vite. Feature Simple Dev Server Live reload CSS file's hmr Usage run npm i run npm run dev And then dev server will watch the file change in public directory.