Skip to main content

bud.watch

Specify files which trigger a full page reload in development mode.

Usage

It is preferred to specify files using bud.path or bud.glob.

bud.watch(bud.path(`@src/pages/page.php`))

You can use glob syntax to specify multiple files using pattern matching:

bud.watch(bud.path(`@src/pages/**/*`))

You can add additional watch patterns using an array:

bud.watch([bud.path('@src/pages/**/*'), bud.path('package.json')])