Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重构mock server,不依赖vue-cli #2887

Closed
PanJiaChen opened this issue Dec 28, 2019 · 1 comment
Closed

重构mock server,不依赖vue-cli #2887

PanJiaChen opened this issue Dec 28, 2019 · 1 comment

Comments

@PanJiaChen
Copy link
Owner

Feature request(新功能建议)

vue-cli 会自动再端口被占用的情况下使用 portfinder 来按顺序寻找一个可用的端口,比如 9527 被占用,则会按顺序查看 9528是否可用。

但这会导致现有的mock方案失效,所以需要不依赖vue-cli的serve,起一个mock-server,从而不受端口的限制。

同时提供一个更简单的mock-server切换到自己api的方案。

@PanJiaChen
Copy link
Owner Author

#2929

重新拉取最新代码已修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant