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.Webpack 5 现已正式发布。请阅读我们的 发布公告。如还未准备升级,请阅读 webpack 4 文档。