We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我有点没看懂, vue-cli里面已经用express起了一个服务,然后你单独用koa又启动了一个服务,是这样么? 我这里有两个问题:
dev-server.js
app.use(devMiddleware)
The text was updated successfully, but these errors were encountered:
开发模式下是起了两个端口的。1个是给webpack输出的express,1个是给koa的。 本项目中vue-cli起的服务是8080端口,具体在config/index.js里的dev处口以看到。这个可以自定义,找个不冲突的端口就行。 8989端口只是koa的端口。。注意看config/index.js里的proxyTable,做了一次代理,否则要跨域
config/index.js
Sorry, something went wrong.
No branches or pull requests
我有点没看懂,
vue-cli里面已经用express起了一个服务,然后你单独用koa又启动了一个服务,是这样么?
我这里有两个问题:
dev-server.js
中有app.use(devMiddleware)
来做这一步。The text was updated successfully, but these errors were encountered: