make livereload injection conditional