Correct use of LiveReload in generated code build process; now uses middleware to inject the script