Home  >  Q&A  >  body text

javascript - webpack --hot hot reload is invalid problem

webpack-dev-server --hot --port 8090 This command, hot reloading is invalid, how to configure it

黄舟黄舟2663 days ago1046

reply all(4)I'll reply

  • ringa_lee

    ringa_lee2017-07-05 11:01:17

    Check if your port is occupied

    reply
    0
  • 漂亮男人

    漂亮男人2017-07-05 11:01:17

    When configuring HMR yourself, you need to install the corresponding dependencies of the front-end framework. For example, under the Vue system, you need to install the vue-hot-reload-api dependency. You can refer to this blog of mine:
    http://ewind.us/2017/webpack-...

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-07-05 11:01:17

    Modify port 8090 in config/index.js and try it. .

    reply
    0
  • 習慣沉默

    習慣沉默2017-07-05 11:01:17

    What’s wrong with closing the port when hot reloading is invalid?.
    If there is a port conflict, even the devServer cannot be started.
    An error message should be posted here

    reply
    0
  • Cancelreply