Compare commits

..

No commits in common. "5164f361e7b158bfee903bd831f744d19ffeb14f" and "bd4eaf9f8f95939e6781fd21792feec6af044e44" have entirely different histories.

3 changed files with 3 additions and 12 deletions

View File

@ -1,11 +1,5 @@
# 更新日志
## v2.9.1
`2021-03-26`
- 修复非 8080 端口无法热更新的问题
## v2.9.0
`2021-03-17`

View File

@ -1,6 +1,6 @@
{
"name": "@vant/cli",
"version": "2.9.1",
"version": "2.9.0",
"description": "",
"main": "lib/index.js",
"typings": "lib/index.d.ts",

View File

@ -21,13 +21,10 @@ function runDevServer(
port: number,
config: ReturnType<typeof getSiteDevConfig>
) {
const server = new WebpackDevServer(webpack(config), {
...config.devServer,
port,
});
const server = new WebpackDevServer(webpack(config), config.devServer);
// this is a hack to disable wds status log
(server as any).showStatus = function () {};
(server as any).showStatus = function() {};
const host = get(config.devServer, 'host', 'localhost');
server.listen(port, host, (err?: Error) => {