Skip to content

CLI option --hot-only is confusing #877

@agoldis

Description

@agoldis

Using

  • webpack-dev-server 2.4.2
  • webpack 2.4.1

According to the documentation CLI option --hot-only should:

Enable Hot Module Replacement (see devServer.hot) without page refresh as fallback in case of build failures.

However, HMR won't work unless --hot option is specified as well. The reason is that webpack/bin/convert-argv.js only injects HotModuleReplacementPlugin if --hot option is set.

CLI help message is a bit better, but still worth mentioning that it must be --hot option set:

./node_modules/.bin/webpack-dev-server -h
...
--hot-only                 Do not refresh page if HMR fails          [boolean]
...

May be it's better to implicitly apply --hot if --hot-only mentioned

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