From ec76cb6df539689ef043c973e5a247ec73b24745 Mon Sep 17 00:00:00 2001 From: sensiblegame Date: Mon, 7 Aug 2017 04:52:26 +0800 Subject: [PATCH] To use custom dev_server.host configured in webpacker.yml (#593) we need to explicitly configure webpack-dev-server with hostname port ref https://github.com/webpack/webpack-dev-server/issues/882#issuecomment-296436511 --- lib/install/bin/webpack-dev-server.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install/bin/webpack-dev-server.tt b/lib/install/bin/webpack-dev-server.tt index cf84794..8b79e59 100644 --- a/lib/install/bin/webpack-dev-server.tt +++ b/lib/install/bin/webpack-dev-server.tt @@ -63,7 +63,7 @@ if Gem.win_platform? WEBPACK_CONFIG, "--host", LISTEN_IP_ADDR, "--port", PORT.to_s] + ARGV else cmdline = ["yarn", "run", "webpack-dev-server", "--", "--progress", "--color", "--config", -WEBPACK_CONFIG, "--host", LISTEN_IP_ADDR, "--port", PORT.to_s] + ARGV +WEBPACK_CONFIG, "--host", LISTEN_IP_ADDR, "--public", "#{HOSTNAME}:#{PORT}", "--port", PORT.to_s] + ARGV end Dir.chdir(APP_PATH) do