about summary refs log tree commit diff
path: root/bin/webpack-dev-server
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-06-30 04:43:26 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-06-30 13:43:26 +0200
commit968354923ec5063946d561e41194870ce37ec43a (patch)
treeb2d2a1bdfec3bb45e7458f835957c3550cac0ff9 /bin/webpack-dev-server
parent59ddf81a4533044452bd7e6a25dd4469cc660ffb (diff)
Fix webpack-dev-server on Windows (#4000)
* Fix webpack-dev-server on Windows

* Serve webpack from 0.0.0.0, access at 127.0.0.1
Diffstat (limited to 'bin/webpack-dev-server')
-rwxr-xr-xbin/webpack-dev-server2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/webpack-dev-server b/bin/webpack-dev-server
index a867f2c01..0beec3175 100755
--- a/bin/webpack-dev-server
+++ b/bin/webpack-dev-server
@@ -23,7 +23,7 @@ end
 begin
   dev_server = YAML.load_file(CONFIG_FILE)["development"]["dev_server"]
 
-  DEV_SERVER_HOST = "http#{"s" if args('--https') || dev_server["https"]}://#{args('--host') || dev_server["host"]}:#{args('--port') || dev_server["port"]}"
+  DEV_SERVER_HOST = "http#{"s" if args('--https') || dev_server["https"]}://#{dev_server["host"]}:#{args('--port') || dev_server["port"]}"
 
 rescue Errno::ENOENT, NoMethodError
   puts "Webpack dev_server configuration not found in #{CONFIG_FILE}."