Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-18 11:42:00 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-18 11:42:00 -0700
commitc1f575a9c6c38a2a362d4e4b25627e36b782a063 (patch)
tree2b8925fd11d2e7418f8d02dfd5559288730660f1 /dev-server.cjs
parent8e74cef4a5b63ab14e47d8d698f804745c0c4ea6 (diff)
Don't watch or inject live reload when running test server
Diffstat (limited to 'dev-server.cjs')
-rw-r--r--dev-server.cjs8
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
+ }
}
);