From 6e27828b9f34374c238205492a13e0001ff17f08 Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Sat, 27 Mar 2021 13:14:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=87=E5=AE=9Awebpack-dev-server?= =?UTF-8?q?=E7=9A=84socket=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugins/commands/dev/devServer.js | 2 ++ packages/fes-template/.env | 2 +- yarn.lock | 5 ----- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js b/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js index 80390fe4..0f2a616d 100644 --- a/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js +++ b/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js @@ -18,6 +18,8 @@ export function startDevServer({ contentBase: webpackConfig.output.path, hot: true, host, + sockHost: host, + sockPort: port, proxy, compress: true, noInfo: true, diff --git a/packages/fes-template/.env b/packages/fes-template/.env index 24f1c637..71165f26 100644 --- a/packages/fes-template/.env +++ b/packages/fes-template/.env @@ -1 +1 @@ -FES_APP_PUBLISH_ERROR_PAGE=hello \ No newline at end of file +FES_APP_PUBLISH_ERROR_PAGE=hello diff --git a/yarn.lock b/yarn.lock index c3fa89d7..55736d07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12906,11 +12906,6 @@ path-to-regexp@0.1.7: resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= -path-to-regexp@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-6.2.0.tgz#f7b3803336104c346889adece614669230645f38" - integrity sha512-f66KywYG6+43afgE/8j/GoiNyygk/bnoCbps++3ErRKsIYkGGupyv07R2Ok5m9i67Iqc+T2g1eAUGUPzWhYTyg== - path-type@^1.0.0: version "1.1.0" resolved "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441"