fix build

This commit is contained in:
Sean Yesmunt 2019-03-10 22:40:31 -04:00
parent 9c70921e2b
commit 4a9668b5d2
2 changed files with 4 additions and 4 deletions

View file

@ -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",

View file

@ -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/');