From 83ad6a37b9d20010ac3fc74ab88b138d99063dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=98=9F=28666595=29?= <666595@nd.com.cn> Date: Mon, 1 Apr 2019 11:39:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:disableHostCheck=E5=9C=A8window=E4=B8=8B?= =?UTF-8?q?=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-webpack-runner/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-webpack-runner/src/index.ts b/packages/taro-webpack-runner/src/index.ts index f9fdb196a9be..cdc498f88294 100644 --- a/packages/taro-webpack-runner/src/index.ts +++ b/packages/taro-webpack-runner/src/index.ts @@ -91,7 +91,7 @@ const buildDev = async (config: BuildConfig): Promise => { bindDevLogger(devUrl, compiler) const server = new WebpackDevServer(compiler, devServerOptions) - server.listen(devServerOptions.port as number, devServerOptions.host as string, err => { + server.listen(devServerOptions.port as number, devServerOptions.disableHostCheck ? '0.0.0.0' : (devServerOptions.host as string), err => { if (err) { reject() return console.log(err)