Disable live-reload middleware if live-reload is disabled. Fixes #745
Merge pull request #791 from fpauser/disabled-live-reload-script-injection-fix

Disable live-reload middleware if live-reload is disabled. Fixes #745