Heim  >  Fragen und Antworten  >  Hauptteil

javascript - webpack --hot Hot Reload ist ungültiges Problem

webpack-dev-server --hot --port 8090 Dieser Befehl, Hot-Reloading ist ungültig, wie man ihn konfiguriert

黄舟黄舟2663 Tage vor1048

Antworte allen(4)Ich werde antworten

  • ringa_lee

    ringa_lee2017-07-05 11:01:17

    你看一下你的端口是否被占用了

    Antwort
    0
  • 漂亮男人

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

    自己配置 HMR 时,需安装前端框架的相应依赖,如 Vue 体系下就需要安装 vue-hot-reload-api 依赖。可以参考我的这篇博客:
    http://ewind.us/2017/webpack-...

    Antwort
    0
  • 淡淡烟草味

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

    在config/index.js 里面修改下端口8090 试试。。

    Antwort
    0
  • 習慣沉默

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

    热重载无效关端口什么事呢..
    如果端口冲突了直接连devServer都启动不了.
    此处应该贴上错误信息

    Antwort
    0
  • StornierenAntwort