Ignore the specified files, i.e. those matching the provided paths or regular expressions, while in watch mode.
new webpack.WatchIgnorePlugin({ paths });
paths
(Array<string | RegExp>
): A list of RegExps or absolute paths to directories or files that should be ignored.You are reading the documentation for webpack 5, the latest release. Read the webpack 4 documentation here. See the migration guide for upgrading to webpack 5.