Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit d62f5da

Browse files
ufoluxdanbucholtz
ufolux
authored andcommitted
fix(dev-server): fix for --nolivereload flag to stop reloading (#1200)
1 parent 802b329 commit d62f5da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dev-server/http-server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ function serveIndex(req: express.Request, res: express.Response) {
8484
fs.readFile(indexFileName, (err, indexHtml) => {
8585
if (config.useLiveReload) {
8686
indexHtml = injectLiveReloadScript(indexHtml, req.hostname, config.liveReloadPort);
87+
indexHtml = injectNotificationScript(config.rootDir, indexHtml, config.notifyOnConsoleLog, config.notificationPort);
8788
}
8889

89-
indexHtml = injectNotificationScript(config.rootDir, indexHtml, config.notifyOnConsoleLog, config.notificationPort);
90-
9190
indexHtml = injectDiagnosticsHtml(config.buildDir, indexHtml);
9291

9392
res.set('Content-Type', 'text/html');

0 commit comments

Comments
 (0)