Skip to content

Nothing seems to disable file watching / hot reloading #1744

@kaiyoma

Description

@kaiyoma

Operating System: Windows 10
Node Version: 10.15.0
NPM Version: 6.4.1
webpack Version: 4.29.6
webpack-dev-server Version: 3.2.1

  • This is a bug
  • This is a modification request

How do you disable file watching / hot reloading? I've been banging my head against the wall for a while now, reading various SO threads and GitHub issues, and yet nothing seems to work.

I've tried the following:

  • Setting hot: false
  • Setting inline: false
  • Removing HotModuleReplacementPlugin from my list of plugins
  • Unsetting publicPath (which actually breaks the UI entirely)
  • Setting watch: false

And yet, every time I save a change to a source file, the dev server rebuilds, messages are sent to the browser console, and (optionally) the page is refreshed.

I really don't understand the last one (watch: false) since it seems like exactly the option I'm looking for, yet it doesn't seem to have any effect. Has anyone actually been able to disable file watching?

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