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

怎么配置proxy #29

Open
yangzichen987046 opened this issue Oct 20, 2017 · 2 comments
Open

怎么配置proxy #29

yangzichen987046 opened this issue Oct 20, 2017 · 2 comments

Comments

@yangzichen987046
Copy link

proxy在哪里配置啊

@zaiMoe
Copy link

zaiMoe commented Nov 23, 2017

可以在webpack.dev.config.js 但是没效果啊...

@freehere107
Copy link

在webpack.dev.config.js,加入

devServer:{
        proxy: {
            "/api": {
                target: "http://api.xxx.com/",
                secure: false
            }
        }
    }

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

3 participants