From b983779c1e8384403d2e67f386985d8b18393769 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 26 Apr 2023 08:34:47 +0300 Subject: vnext: production mode for the ssr build --- package.json | 4 ++-- 1 file 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" -- cgit v1.2.3