aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-20 06:35:07 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:59 +0300
commit3a927e19f0d10eeff560572563559825d0b90306 (patch)
tree3f7e4a312f9a56dd0acde65605fd0220b2c3de1d /vnext
parent0930332430de0b9f123ecb556949c8db54a92359 (diff)
Do not minify in development mode
Diffstat (limited to 'vnext')
-rw-r--r--vnext/package.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/vnext/package.json b/vnext/package.json
index 6b94ae87..9027d10d 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -5,11 +5,11 @@
"scripts": {
"test": "jest",
"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": "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",
+ "build:js": "esbuild src/index.js --bundle --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 -- --sourcemap --keep-names --minify\"",
+ "build:ssr": "npm run build && esbuild --bundle --sourcemap --minify --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/\"",
+ "start": "cross-env NODE_ENV=development concurrently \"npm run build:js -- --watch\" \"npm run build:css -- -w\" \"live-server -V --entry-file=index.html public/\"",
"lint": "eslint src/**/*.js"
},
"keywords": [],