From 3fefea06b884ff905509f5854cb13bc54d092f38 Mon Sep 17 00:00:00 2001 From: 杨晴 Date: Mon, 1 Aug 2022 17:42:26 +0800 Subject: commands: Fix embed in livereload.go --- livereload/livereload.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/livereload/livereload.go b/livereload/livereload.go index eb2e79473..246928884 100644 --- a/livereload/livereload.go +++ b/livereload/livereload.go @@ -43,6 +43,8 @@ import ( "net/url" "path/filepath" + _ "embed" + "github.com/gorilla/websocket" ) @@ -152,7 +154,7 @@ func liveReloadJS() []byte { var ( // This is a patched version, see https://github.com/livereload/livereload-js/pull/84 - // go:embed livereload.js + //go:embed livereload.js livereloadJS string hugoLiveReloadPlugin = fmt.Sprintf(` /* -- cgit v1.2.3