From 27173ec98548fb3873ac79a87e8b88d081d0b5e4 Mon Sep 17 00:00:00 2001 From: Eden Kirin Date: Sun, 28 Jan 2024 22:25:31 +0100 Subject: [PATCH] Optimize app build --- Makefile | 1 - package.json | 2 +- public/robots.txt | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6e1d7b5..bb2c69a 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,6 @@ run: build: - @rm -rf build @npm run build - @rm build/static/js/*.map docker-build: - @docker image rm $(IMAGE_NAME) diff --git a/package.json b/package.json index 5734a2e..ef790f3 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build", + "build": "GENERATE_SOURCEMAP=false react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, diff --git a/public/robots.txt b/public/robots.txt index e9e57dc..26c1d46 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,3 +1,3 @@ # https://www.robotstxt.org/robotstxt.html User-agent: * -Disallow: +Disallow: *