fix(websiteserver): only enable file watching when reload injection is active
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@api.global/typedserver',
|
||||
version: '8.4.2',
|
||||
version: '8.4.3',
|
||||
description: 'A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.'
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user