aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-04-26 08:34:47 +0300
committerGravatar Vitaly Takmazov2023-04-26 08:34:47 +0300
commitb983779c1e8384403d2e67f386985d8b18393769 (patch)
tree326ddca01522a2d49fc4db1253dcebf954930f7a /package.json
parent89cec9e047c11c340fa87bb861c879fcdc2ba239 (diff)
vnext: production mode for the ssr build
Diffstat (limited to 'package.json')
-rw-r--r--package.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index ed72e2bc..23930884 100644
--- a/package.json
+++ b/package.json
@@ -6,8 +6,8 @@
"compile": "cross-env NODE_ENV=production webpack",
"lint": "eslint .",
"vnext:test": "jest",
- "vnext:build": "webpack -c vnext/webpack.config.js",
- "vnext:build:ssr": "npm run vnext:build && webpack -c vnext/server/webpack.config.js",
+ "vnext:build": "webpack -c vnext/webpack.config.js --mode production",
+ "vnext:build:ssr": "npm run vnext:build && webpack -c vnext/server/webpack.config.js --mode production",
"vnext:start-ssr": "npm run vnext:build:ssr && cross-env DEBUG=http node --enable-source-maps public/server.js",
"vnext:start": "cross-env NODE_ENV=development webpack serve -c vnext/webpack.config.js --mode development",
"vnext:lint": "eslint vnext/src/**/*.js"