webpack --watch会产生*.hot-update.json文件,解决方法如下:

output: {
    path: path.join(root, "dist"),
    filename: "bundle.js",
    hotUpdateChunkFilename: 'hot/hot-update.js',
    hotUpdateMainFilename: 'hot/hot-update.json'
}

 

 

出处:https://github.com/gaearon/react-hot-loader/issues/456

相关文章:

  • 2021-08-02
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-09-30
猜你喜欢
  • 2021-04-19
  • 2021-07-17
  • 2022-01-02
  • 2021-08-15
  • 2022-12-23
  • 2021-12-31
  • 2021-06-03
相关资源
相似解决方案