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

Commit

Permalink
fix(dev-server): fix for --nolivereload flag to stop reloading (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
ufolux authored and danbucholtz committed Oct 12, 2017
1 parent 802b329 commit d62f5da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dev-server/http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d62f5da

Please sign in to comment.