From cc1f9be906028a68a9fc5cb9043623ca000265d6 Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Wed, 7 Aug 2024 16:54:34 +0200 Subject: [PATCH] update package.json to work with webpack v4 --- client/package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/package.json b/client/package.json index 5890bd4..b92d4a2 100644 --- a/client/package.json +++ b/client/package.json @@ -1,7 +1,7 @@ { "scripts": { - "start": "webpack-dev-server --progress --colors --content-base dist --host 0.0.0.0", - "build": "export NODE_ENV=production && webpack --progress --profile --colors" + "start": "webpack-dev-server --mode development --progress --host 0.0.0.0", + "build": "webpack --mode production --progress" }, "dependencies": { "newsroom-core": "github:superdesk/newsroom-core#develop" @@ -10,7 +10,6 @@ "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", - "webpack": "3.11.0", - "webpack-dev-server": "2.11.1" + "webpack": "~4.47.0" } }