admin-fe/build/dev-client.js
2017-04-18 15:09:13 +08:00

9 lines
245 B
JavaScript

/* 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()
}
})