diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-06-16 23:15:54 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-06-17 03:21:07 +0300 |
commit | e0dbfacf6eae0ef6ce1f641e5057bc89c9478b47 (patch) | |
tree | a119e6955309687c07561fb90a2943de90361691 /config/webpack.config.js | |
parent | 442bd2657c35afbe5d8dd1eb189a431b24308544 (diff) |
don't make assumptions about command line arguments invoking webpack config
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 2 |
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'; |