Vite Plugin for Server Restart on File Changes
JSON →vite-plugin-restart is a Vite development server plugin that allows developers to define custom files or glob patterns whose changes trigger an automatic restart of the Vite server or a client-side full page reload. This eliminates the need for manual server restarts when modifying configuration files, database schemas, or other non-hot-reloadable assets, often replacing external watchers like `nodemon`. The package is currently stable at version `2.0.0` and typically releases updates to maintain compatibility with new Vite major versions and introduce features or bug fixes. A key differentiator introduced in v2.0.0 is content-based change detection, which, by default, prevents unnecessary restarts caused by file metadata changes or infinite loops when watching auto-generated files. It also offers a `delay` option to debounce restart triggers.
Traffic · last 30 days ↓100% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France