diff --git a/src/main/router.ts b/src/main/router.ts index 4c37d89554..896893a592 100644 --- a/src/main/router.ts +++ b/src/main/router.ts @@ -106,8 +106,8 @@ export class Router { try { const filename = path.basename(req.url); - // redirect requests to [appName].js, [appName].html to webpack-dev-server (for hot-reload support) - const toWebpackDevServer = filename.includes(appName) || filename.includes("hot-update"); + // redirect requests to [appName].js, [appName].html /sockjs-node/ to webpack-dev-server (for hot-reload support) + const toWebpackDevServer = filename.includes(appName) || filename.includes("hot-update") || req.url.includes("sockjs-node"); if (isDevelopment && toWebpackDevServer) { const redirectLocation = `http://localhost:${webpackDevServerPort}${req.url}`;