Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
+ }
}
);