aboutsummaryrefslogtreecommitdiff
path: root/vnext/package.json
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-08 01:25:03 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit46fd33806e56a49ce6d6e8859ef0e9232403c0c9 (patch)
treec3e045bad1c30b1ed7c9decfb3f3fb2e007101a3 /vnext/package.json
parentfcc333d0cc14a03da5ccbe6f38e1359f14bc4e98 (diff)
Using `live-server` for live reloading
Diffstat (limited to 'vnext/package.json')
-rw-r--r--vnext/package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/package.json b/vnext/package.json
index 6a7b6252..c73b1024 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -9,7 +9,7 @@
"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",
- "start": "concurrently \"npm run build:js -- --servedir=public\" \"npm run build:css -- -w\"",
+ "start": "concurrently \"npm run build:js -- --watch\" \"npm run build:css -- -w\" \"live-server -V --entry-file=index.html public/\"",
"lint": "eslint src/**/*.js"
},
"keywords": [],
@@ -36,6 +36,7 @@
"eslint-plugin-testing-library": "^5.9.1",
"jest": "^29.2.2",
"jest-environment-jsdom": "^29.2.2",
+ "live-server": "^1.2.2",
"postcss": "^8.4.18",
"postcss-cli": "^10.0.0",
"postcss-import": "^15.0.0",