提交 57c80aa1 编写于 作者: fxy060608's avatar fxy060608

fix(h5): remove empty port (question/143504)

上级 325ff078
......@@ -36,6 +36,10 @@ export function createConfig(options: {
...getDevServerOptions(parseManifestJsonOnce(inputDir)),
}
if ((server.port as unknown as string) === '') {
delete server.port
}
const { server: userServer } = config
if (userServer) {
if (hasOwn(userServer, 'host')) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册