Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Watching

Index

Constructors

Properties

blocked: boolean
callbacks: CallbackFunction<void>[]
closed: boolean
compiler: Compiler
invalid: boolean
lastWatcherStartTime?: number
pausedWatcher?: null | Watcher
running: boolean
startTime: null | number
suspended: boolean
watchOptions: { aggregateTimeout?: number; followSymlinks?: boolean; ignored?: string | RegExp | string[]; poll?: number | boolean; stdin?: boolean }

Type declaration

  • Optional aggregateTimeout?: number

    Delay the rebuilt after the first change. Value is a time in ms.

  • Optional followSymlinks?: boolean

    Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').

  • Optional ignored?: string | RegExp | string[]

    Ignore some files from watching (glob pattern or regexp).

  • Optional poll?: number | boolean

    Enable polling mode for watching.

  • Optional stdin?: boolean

    Stop watching when stdin stream has ended.

watcher?: null | Watcher

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

  • resume(): void
  • Returns void

  • suspend(): void
  • Returns void

  • watch(files: Iterable<string>, dirs: Iterable<string>, missing: Iterable<string>): void
  • Parameters

    • files: Iterable<string>
    • dirs: Iterable<string>
    • missing: Iterable<string>

    Returns void