Skip to content
代码片段 群组 项目
提交 c957cc53 编辑于 作者: Lukas Eipert's avatar Lukas Eipert
浏览文件

Fix incremental webpack mode without live_reload

If `live_reload` is disabled, we accidentally kill the webpack dev
server because `devServer.webSocketServer.clients` is undefined, because
we are checking the wrong condition. This fixes the condition check.
上级 7996a03e
No related branches found
No related tags found
无相关合并请求
......@@ -102,7 +102,7 @@ class IncrementalWebpackCompiler {
setTimeout(() => {
devServer.invalidate(() => {
if (devServer.sockets) {
if (Array.isArray(devServer.webSocketServer && devServer.webSocketServer.clients)) {
devServer.sendMessage(devServer.webSocketServer.clients, 'static-changed');
}
});
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册