1
0
mirror of https://github.com/1621740748/vue-ba.git synced 2025-04-06 03:57:50 +08:00
vue-ba/build/dev-client.js
2017-07-13 23:47:48 +08:00

10 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()
}
})