mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
commands: Fix embed in livereload.go
This commit is contained in:
parent
5c48ba9343
commit
3fefea06b8
1 changed files with 3 additions and 1 deletions
|
@ -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(`
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue