You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Hugo are you using (hugo version)?
$ hugo version
hugo v0.112.6-2ca0fcc4485c74859382ffab4abf8610cdd3771a+extended linux/amd64 BuildDate=2023-06-01T09:03:29Z VendorInfo=gohugoio
Does this issue reproduce with the latest release?
Yes
Scenario
Run hugo -w (not in server mode) along with caddy for local testing to overcome the current limitation that hugo server does not yet provide HTTPS (see #4883).
Observed behavior
When running hugo in build mode with the -w option, but withoutserver, the livereload script
is injected anyway. However, this is not usable since hugo -w does not expose it when not in server mode.
The --liveReloadPort int and --disableLiveReload options are only available for hugo server but not for hugo -w.
Expected behavior
When running hugo -w the livereload script is not injected.
Alternative behavior
When running hugo -w the livereload function behaves the same as in server mode but the server only serves the livereload hook:
hugo -w livereload enabled, script injected, server started for livereload only
hugo -w --disableLiveReload no script injection, no livereload listener
hugo -w --liveReloadPort int script injection, server started for livereload only, connect to other port
The text was updated successfully, but these errors were encountered:
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Scenario
Run
hugo -w
(not in server mode) along withcaddy
for local testing to overcome the current limitation thathugo server
does not yet provide HTTPS (see #4883).Observed behavior
When running hugo in build mode with the
-w
option, but withoutserver
, the livereload scriptis injected anyway. However, this is not usable since
hugo -w
does not expose it when not inserver
mode.The
--liveReloadPort int
and--disableLiveReload
options are only available forhugo server
but not forhugo -w
.Expected behavior
When running
hugo -w
the livereload script is not injected.Alternative behavior
When running
hugo -w
the livereload function behaves the same as inserver
mode but the server only serves the livereload hook:hugo -w
livereload enabled, script injected, server started for livereload onlyhugo -w --disableLiveReload
no script injection, no livereload listenerhugo -w --liveReloadPort int
script injection, server started for livereload only, connect to other portThe text was updated successfully, but these errors were encountered: