UNPKG

@wibetter/akfun

Version:

前端脚手架:支持Vue技术栈和react技术栈

10 lines (8 loc) 243 B
require('eventsource-polyfill'); const hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true'); // 实现热更新 hotClient.subscribe((event) => { if (event.action === 'reload') { window.location.reload(); } });