chore: add target browser configuration
authorGreg Hurrell <greg@hurrell.net>
Sun, 13 Jun 2021 09:37:31 +0000 (11:37 +0200)
committerGreg Hurrell <greg@hurrell.net>
Sun, 13 Jun 2021 09:37:31 +0000 (11:37 +0200)
Via:

```
$ react-scripts build
✔ We're unable to detect target browsers.

Would you like to add the defaults to your package.json? … yes
```

package.json

index cdd19307dd113881be5ca7c91332b3f25bd48203..5c8f2961ff7820bb524cbbc8bfc7dabc573cbca0 100644 (file)
     "build": "react-scripts build",
     "test": "react-scripts test --env=jsdom",
     "eject": "react-scripts eject"
+  },
+  "browserslist": {
+    "production": [
+      ">0.2%",
+      "not dead",
+      "not op_mini all"
+    ],
+    "development": [
+      "last 1 chrome version",
+      "last 1 firefox version",
+      "last 1 safari version"
+    ]
   }
 }