fix dev esbuild config
This commit is contained in:
parent
20a57d8ef1
commit
be61a6f6ee
3 changed files with 19 additions and 12 deletions
|
|
@ -30,7 +30,7 @@ if (process.argv[3] === 'dev') {
|
|||
}
|
||||
|
||||
// Start the server
|
||||
const server = process.argv.includes('--build-only') ? undefined : app.listen(require.main !== module || process.argv[2] === undefined ? 8080 : process.argv[2], function () {
|
||||
const server = process.argv.includes('--prod') ? undefined : app.listen(require.main !== module || process.argv[2] === undefined ? 8080 : process.argv[2], function () {
|
||||
console.log('Server listening on port ' + server.address().port)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue