-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
CLI option --hot-only is confusing #877
Copy link
Copy link
Closed
Description
Using
webpack-dev-server2.4.2webpack2.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
Reactions are currently unavailable