A CLI tool that watches your Vite project files and automatically triggers rebuilds (vite build) when changes are detected.
# Install globally
npm install -g vite-watcher
# Or install locally in your project
npm install --save-dev vite-watcherNavigate to your Vite project directory and run:
vite-watchYou can create a .vitewatchrc.json file in your project root to customize the behavior:
{
"watchPaths": [
"./src/**/*.js",
"./src/**/*.css"
],
"ignorePaths": [
"**/node_modules/**",
"**/dist/**"
],
"debounceDelay": 500
}- Watches for file changes in your Vite project
- Automatically triggers rebuilds
- Configurable file paths and ignore patterns
- Debounced builds to prevent rapid successive builds
- Clear console output with status indicators