标签: webpack hot-module-replacement
如何为许多入口点添加hmr? 现在,如果我在每个入口点都指定了这样的代码
if(module.hot) module.hot.accept(); }
但是,如果切入点太多了怎么办?