Back to Webpack Js Org

WatchIgnorePlugin

src/content/plugins/watch-ignore-plugin.mdx

4.41.2439 B
Original Source

Ignore the specified files, i.e. those matching the provided paths or regular expressions, while in watch mode.

js
new webpack.WatchIgnorePlugin({ paths });

Options

  • paths (Array<string | RegExp>): A list of RegExps or absolute paths to directories or files that should be ignored.

W> This plugin is deprecated in favor of watchOptions.ignored option.