Blame view

build/dev-client.js 245 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
  /* eslint-disable */
  require('eventsource-polyfill')
  var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
  
  hotClient.subscribe(function (event) {
    if (event.action === 'reload') {
      window.location.reload()
    }
  })