aboutsummaryrefslogtreecommitdiff
path: root/vnext/package.json
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-08 01:57:09 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit968fcc490d273799a7dfcafcfbe3af537cf10180 (patch)
tree8cb9a6c62fec85db3625ca1e6ca2171b4afa1ba4 /vnext/package.json
parent77528ba8e616d51a69834a6a3b9a4af66dec6706 (diff)
Build js and css with ssr
Diffstat (limited to 'vnext/package.json')
-rw-r--r--vnext/package.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/package.json b/vnext/package.json
index 02efbef3..a9a38343 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -7,8 +7,8 @@
"build:css": "postcss --verbose --map style.css.map src/index.css -d public/",
"build:js": "esbuild src/index.js --bundle --minify --target=safari11 --loader:.js=jsx --loader:.png=file --loader:.svg=file --outdir=public",
"build": "cross-env NODE_ENV=production concurrently \"npm run build:css\" \"npm run build:js\"",
- "build:ssr": "esbuild --bundle --sourcemap --keep-names --platform=node --target=node18 --loader:.js=jsx --loader:.png=file --loader:.svg=file --outfile=public/server.js server/index.js",
- "start-ssr": "npm run build && npm run build:ssr && cross-env DEBUG=http node public/server.js",
+ "build:ssr": "npm run build && esbuild --bundle --sourcemap --keep-names --platform=node --target=node18 --loader:.js=jsx --loader:.png=file --loader:.svg=file --outfile=public/server.js server/index.js",
+ "start-ssr": "npm run build:ssr && cross-env DEBUG=http node public/server.js",
"start": "concurrently \"npm run build:js -- --watch\" \"npm run build:css -- -w\" \"live-server -V --entry-file=index.html public/\"",
"lint": "eslint src/**/*.js"
},