dev-client.js 192 字节
Newer Older
B
BingBlog 已提交
1 2 3 4 5 6 7
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')

hotClient.subscribe(function (event) {
  if (event.action === 'reload') {
    window.location.reload()
  }
})