aboutsummaryrefslogtreecommitdiff
path: root/vnext/package.json
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-30 00:58:33 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit5e53e6d06e8d18f0871dfa673acd100c2f2e9e7a (patch)
tree2d1284ba37b4595f5f63cecb8b072bba082ea139 /vnext/package.json
parent059a5a13a8018676110796048b2e98943af42eb6 (diff)
Bundle server with esbuild
Diffstat (limited to 'vnext/package.json')
-rw-r--r--vnext/package.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/vnext/package.json b/vnext/package.json
index 41e26972..d7f9225c 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -4,9 +4,8 @@
"description": "",
"scripts": {
"test": "jest",
- "dist": "webpack --mode=production --progress",
- "start": "webpack serve",
- "server": "npm run dist && node server/bootstrap.js"
+ "dist": "webpack --mode=production --progress && esbuild --bundle --platform=node --target=node18 --loader:.css=file --loader:.js=jsx --loader:.png=file --loader:.svg=file --outfile=dist/server.js server/index.js",
+ "start": "webpack serve"
},
"keywords": [],
"author": "",
@@ -81,6 +80,7 @@
"config": "^3.3.8",
"core-js": "^3.26.0",
"cors": "^2.8.5",
+ "esbuild": "^0.15.12",
"evil-icons": "^1.10.1",
"express": "^4.18.2",
"ignore-styles": "^5.0.1",