webpack watch模式产生*.hot-update.json文件

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

posted @ 2018-03-14 17:32  全玉  阅读(1156)  评论(0编辑  收藏  举报