summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-06-16 15:15:54 -0500
committerMike Greiling <mike@pixelcog.com>2017-06-16 19:21:07 -0500
commite0dbfacf6eae0ef6ce1f641e5057bc89c9478b47 (patch)
treea119e6955309687c07561fb90a2943de90361691 /config
parent442bd2657c35afbe5d8dd1eb189a431b24308544 (diff)
downloadgitlab-ce-e0dbfacf6eae0ef6ce1f641e5057bc89c9478b47.tar.gz
don't make assumptions about command line arguments invoking webpack config
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 3c2455ebf35..ad6bd88020d 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -11,7 +11,7 @@ var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeMod
var ROOT_PATH = path.resolve(__dirname, '..');
var IS_PRODUCTION = process.env.NODE_ENV === 'production';
-var IS_DEV_SERVER = process.argv[1].indexOf('webpack-dev-server') !== -1;
+var IS_DEV_SERVER = process.argv.join(' ').indexOf('webpack-dev-server') !== -1;
var DEV_SERVER_HOST = process.env.DEV_SERVER_HOST || 'localhost';
var DEV_SERVER_PORT = parseInt(process.env.DEV_SERVER_PORT, 10) || 3808;
var DEV_SERVER_LIVERELOAD = process.env.DEV_SERVER_LIVERELOAD !== 'false';