From f6c4dc3585df71d09252a28f65e835a594389118 Mon Sep 17 00:00:00 2001 From: stew-ro <60453211+stew-ro@users.noreply.github.com> Date: Wed, 23 Sep 2020 13:49:37 -0700 Subject: [PATCH] fix: remove opening browser for yarn start (#605) --- .env.release => .env.electron | 3 ++- package.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename .env.release => .env.electron (89%) diff --git a/.env.release b/.env.electron similarity index 89% rename from .env.release rename to .env.electron index c91b04eb..bb8d7082 100644 --- a/.env.release +++ b/.env.electron @@ -2,4 +2,5 @@ # relative to index.html # without it, you'll see error like this # Failed to load resource: net::ERR_FILE_NOT_FOUND /favicon.ico:1 -PUBLIC_URL= \ No newline at end of file +PUBLIC_URL= +BROWSER=none diff --git a/package.json b/package.json index 43955d4f..47ca11e5 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "yarn": "^1.22.4" }, "scripts": { - "start": "nf start -p 3000", + "start": "env-cmd -f .env.electron nf start -p 3000", "compile": "tsc", "build": "react-scripts build", "react-start": "react-scripts start", @@ -63,7 +63,7 @@ "electron:start:dev": "yarn electron-start", "electron:start:prod": "yarn webpack:prod && yarn electron-start", "electron-start": "node src/electron/start", - "release": "env-cmd -f .env.release yarn build && yarn webpack:prod && yarn electron-builder", + "release": "env-cmd -f .env.electron yarn build && yarn webpack:prod && yarn electron-builder", "tslint": "./node_modules/.bin/tslint 'src/**/*.ts*'", "tslintfix": "./node_modules/.bin/tslint 'src/**/*.ts*' --fix" },