From 968354923ec5063946d561e41194870ce37ec43a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 30 Jun 2017 04:43:26 -0700 Subject: [PATCH] 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 --- bin/webpack-dev-server | 2 +- config/webpacker.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/webpack-dev-server b/bin/webpack-dev-server index a867f2c0137..0beec31753b 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}." diff --git a/config/webpacker.yml b/config/webpacker.yml index c1cd6e93b27..aa429a1ddac 100644 --- a/config/webpacker.yml +++ b/config/webpacker.yml @@ -19,7 +19,7 @@ development: <<: *default dev_server: - host: 0.0.0.0 + host: 127.0.0.1 port: 8080 https: false