index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
path: root/dev-server.cjs
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-18 11:42:00 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-18 11:42:00 -0700 |
commit | c1f575a9c6c38a2a362d4e4b25627e36b782a063 (patch) | |
tree | 2b8925fd11d2e7418f8d02dfd5559288730660f1 /dev-server.cjs | |
parent | 8e74cef4a5b63ab14e47d8d698f804745c0c4ea6 (diff) |
Don't watch or inject live reload when running test server
Diffstat (limited to 'dev-server.cjs')
-rw-r--r-- | dev-server.cjs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-server.cjs b/dev-server.cjs index 13b517a..4406514 100644 --- a/dev-server.cjs +++ b/dev-server.cjs @@ -2,11 +2,15 @@ const { createServer } = require('esbuild-server'); const server = createServer( { bundle: true, - entryPoints: ['src/index.js'], + entryPoints: ['src/index.js'] }, { static: 'public', - ...(process.argv.slice(2).includes('--test')) && { port: 3005 } + ...(process.argv.slice(2).includes('--test')) && { + port: 3005, + injectLiveReload: false, + watch: false + } } ); |