dev-client.js 266 Bytes
/* eslint-disable */
require('eventsource-polyfill')
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')

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