Fix NODE_ENV in production

This commit is contained in:
futpib 2018-11-20 22:03:49 +03:00
parent ee52fabc9d
commit 52553584f4
3 changed files with 1 additions and 7 deletions

View File

@ -1,5 +1,5 @@
require('dotenv').config();
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
const { app, BrowserWindow } = require('electron');

View File

@ -31,7 +31,6 @@
"bluebird": "^3.5.3",
"camelcase": "^5.0.0",
"d3": "^5.7.0",
"dotenv": "^6.1.0",
"electron-store": "^2.0.0",
"freedesktop-icons": "^0.1.0",
"ini": "^1.3.5",

View File

@ -2125,11 +2125,6 @@ dot-prop@^4.1.0:
dependencies:
is-obj "^1.0.0"
dotenv@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.1.0.tgz#9853b6ca98292acb7dec67a95018fa40bccff42c"
integrity sha512-/veDn2ztgRlB7gKmE3i9f6CmDIyXAy6d5nBq+whO9SLX+Zs1sXEgFLPi+aSuWqUuusMfbi84fT8j34fs1HaYUw==
duplexer3@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"