aboutsummaryrefslogtreecommitdiff
path: root/vnext/package.json
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-01 21:42:35 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commitfc6b4023e963f2afcdb6393b95b83de39fbd5c22 (patch)
treee8769fe2ee36bd0efff6ace68ebe84e8f72200be /vnext/package.json
parentada83d8beae1c5298cbc5f01801d3f2780f09456 (diff)
`npm run start-ssr`: start server
* Drop babel bootstrap script and use a bundle from esbuild
Diffstat (limited to 'vnext/package.json')
-rw-r--r--vnext/package.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/vnext/package.json b/vnext/package.json
index f6ff2296..a8d5346d 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -5,6 +5,7 @@
"scripts": {
"test": "jest",
"dist": "webpack --mode=production --progress && esbuild --bundle --sourcemap --keep-names --platform=node --target=node18 --loader:.css=file --loader:.js=jsx --loader:.png=file --loader:.svg=file --outfile=dist/server.js server/index.js",
+ "start-ssr": "npm run dist && cross-env DEBUG=http node dist/server.js",
"start": "webpack serve"
},
"keywords": [],
@@ -21,6 +22,7 @@
"@testing-library/react": "^13.4.0",
"babel-jest": "^29.2.2",
"babel-loader": "^9.0.1",
+ "cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.2.2",
"error-overlay-webpack-plugin": "^1.1.0",