Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Vite Watcher is a CLI tool that monitors your Vite project files and automatically triggers rebuilds when changes are detected.

Notifications You must be signed in to change notification settings

midnite81/vite-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vite Watcher

A CLI tool that watches your Vite project files and automatically triggers rebuilds (vite build) when changes are detected.

Installation

# Install globally
npm install -g vite-watcher

# Or install locally in your project
npm install --save-dev vite-watcher

Usage

Navigate to your Vite project directory and run:

vite-watch

Configuration

You 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
}

Features

  • 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

About

Vite Watcher is a CLI tool that monitors your Vite project files and automatically triggers rebuilds when changes are detected.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published