From 4a9668b5d2ab4accbd45ef159961769ff9661d72 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Sun, 10 Mar 2019 22:40:31 -0400 Subject: [PATCH] fix build --- package.json | 6 +++--- webpack.base.config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 099b511b0..404f7c95d 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,10 @@ "compile:electron": "webpack --progress --config webpack.electron.config.js", "compile:web": "webpack --config webpack.web.config.js", "compile": "yarn compile:electron && yarn compile:web", - "dev:electron": "cross-env NODE_ENV=development webpack-dev-server --hot --progress --config webpack.electron.config.js", - "dev:web": "cross-env NODE_ENV=development webpack-dev-server --open --hot --progress --config webpack.web.config.js", + "dev:electron": "webpack-dev-server --hot --progress --config webpack.electron.config.js", + "dev:web": "webpack-dev-server --open --hot --progress --config webpack.web.config.js", "dev:internal-apis": "LBRY_API_URL='http://localhost:8080' yarn dev:electron", - "run:electron": "cross-env NODE_ENV=development electron ./dist/electron/main.js", + "run:electron": "electron ./dist/electron/main.js", "run:web": "cross-env NODE_ENV=production yarn compile:web && node ./dist/web/server.js", "pack": "electron-builder --dir", "dist": "electron-builder", diff --git a/webpack.base.config.js b/webpack.base.config.js index 1a6d4f9fb..2cfa160c5 100644 --- a/webpack.base.config.js +++ b/webpack.base.config.js @@ -3,7 +3,7 @@ const merge = require('webpack-merge'); const { DefinePlugin, ProvidePlugin } = require('webpack'); const { getIfUtils, removeEmpty } = require('webpack-config-utils'); -const { ifProduction } = getIfUtils(process.env.NODE_ENV); +const { ifProduction } = getIfUtils(process.env.NODE_ENV || 'development'); const UI_ROOT = path.resolve(__dirname, 'src/ui/'); const STATIC_ROOT = path.resolve(__dirname, 'static/');