Skip to content

可以支持devServer.proxy传递数组吗 #3241

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

Closed
zjsxdyw opened this issue Jan 3, 2019 · 1 comment
Closed

可以支持devServer.proxy传递数组吗 #3241

zjsxdyw opened this issue Jan 3, 2019 · 1 comment

Comments

@zjsxdyw
Copy link

zjsxdyw commented Jan 3, 2019

What problem does this feature solve?

devServer配置中支持proxy传递数组

module.exports = {
  //...
  devServer: {
    proxy: [{
      context: ['/auth', '/api'],
      target: 'http://localhost:3000',
    }]
  }
};

目前发现只支持对象和字符串的形式

What does the proposed API look like?

建议能支持传递数组

@zjsxdyw zjsxdyw closed this as completed Jan 3, 2019
@zjsxdyw
Copy link
Author

zjsxdyw commented Jan 3, 2019

#2320重复了

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

No branches or pull requests

1 participant