From 141bea4af6dfce4e06b40541fe4eca27bec84c3a Mon Sep 17 00:00:00 2001 From: Jitendra Gundaniya Date: Mon, 9 Oct 2023 09:58:31 +0100 Subject: [PATCH] Fix: Setting Env. Variable for cross platform --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8531831587..c560d5aa1c 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "proxy": "http://localhost:4142/", "scripts": { - "build": "GENERATE_SOURCEMAP=false react-scripts build", + "build": "cross-env GENERATE_SOURCEMAP=false react-scripts build", "postbuild": "rm -rf build/api", "start": "REACT_APP_DATA_SOURCE=$DATA npm-run-all -p start:app start:lib", "start:app": "PORT=4141 react-scripts start", @@ -108,6 +108,7 @@ "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0", "babel-plugin-transform-remove-imports": "^1.7.0", "canvas": "^2.7.0", + "cross-env": "7.0.3", "css-loader": "^4.3.0", "cypress": "^12.14.0", "enzyme": "^3.11.0",