fix(websiteserver): only enable file watching when reload injection is active

This commit is contained in:
2026-03-23 10:34:37 +00:00
parent 5e41ab63e4
commit c22e911d1e
3 changed files with 8 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ export class UtilityWebsiteServer {
// Development features
injectReload: this.options.injectReload ?? true,
watch: !!this.options.serveDir,
watch: !!(this.options.serveDir && (this.options.injectReload ?? true)),
noCache: this.options.noCache ?? true,
// SPA support (enabled by default for modern web apps)