From 978d49f045470319b9606a64378b849afb155020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Tue, 2 Apr 2019 11:50:16 +0200 Subject: [PATCH] Updated build command in package.json to move build files to server/public --- app/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/package.json b/app/package.json index 25b95f3..3efacd1 100644 --- a/app/package.json +++ b/app/package.json @@ -40,7 +40,7 @@ "analyze-main": "source-map-explorer build/static/js/main.*", "analyze-chunk": "source-map-explorer build/static/js/2.*", "start": "HTTPS=true PORT=4443 react-scripts start", - "build": "react-scripts build", + "build": "react-scripts build && rm -rf ../server/public/* && cp -r build/* ../server/public/", "test": "react-scripts test", "eject": "react-scripts eject" },