Skip to content

watchOptions.ignored not working #1208

@websolutions-hamburg

Description

@websolutions-hamburg
  • Operating System: Windows 10
  • Node Version: 9.2.0
  • NPM Version: 5.5.1
  • webpack Version: 3.8.1
  • webpack-dev-server Version: 2.9.5
  • This is a bug
  • This is a feature request
  • This is a modification request

Code

  devServer: {
      contentBase: path.join(__dirname, 'dist'),
      watchContentBase: true,
      watchOptions: {
        ignored: '/\*\*\/*.html/' // or /\*\*\/*.html/ or '**/*.html'
      }
  }

Expected Behavior

Ignore all *.html files.

Actual Behavior

Nothing will be ignored. I also checked the source code from webpack and webpack-dev-server and I didn't found a place where the configuration watchOptions.ignored will be used.

For Bugs; How can we reproduce the behavior?

Start the dev-server with option watchContentBase and try to ignore watch some files from the content base.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions