david 6 лет назад
Родитель
Сommit
8a2136f2b8
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      app/package.json
  2. 1 1
      build.json

+ 1 - 1
app/package.json

@@ -27,7 +27,7 @@
   },
   "scripts": {
     "start": "react-scripts start",
-    "build": "react-scripts build",
+    "build": "react-scripts build && cd build && tar czf ../frontend.tar.gz .",
     "test": "react-scripts test",
     "eject": "react-scripts eject"
   },

+ 1 - 1
build.json

@@ -4,7 +4,7 @@
       "name": "CritterCrossing",
       "dir": "app",
       "artifacts": [
-        "build/"
+        "frontend.tar.gz"
       ]
     },
     {