diff --git a/src/dev-server/http-server.ts b/src/dev-server/http-server.ts index 59a95dd5..b3e3ca85 100644 --- a/src/dev-server/http-server.ts +++ b/src/dev-server/http-server.ts @@ -84,10 +84,9 @@ function serveIndex(req: express.Request, res: express.Response) { fs.readFile(indexFileName, (err, indexHtml) => { if (config.useLiveReload) { indexHtml = injectLiveReloadScript(indexHtml, req.hostname, config.liveReloadPort); + indexHtml = injectNotificationScript(config.rootDir, indexHtml, config.notifyOnConsoleLog, config.notificationPort); } - indexHtml = injectNotificationScript(config.rootDir, indexHtml, config.notifyOnConsoleLog, config.notificationPort); - indexHtml = injectDiagnosticsHtml(config.buildDir, indexHtml); res.set('Content-Type', 'text/html');