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

Support devServer.proxy in configureWebpack #858

Closed
ad-m opened this issue Sep 21, 2018 · 1 comment
Closed

Support devServer.proxy in configureWebpack #858

ad-m opened this issue Sep 21, 2018 · 1 comment

Comments

@ad-m
Copy link

ad-m commented Sep 21, 2018

Feature request

Allow to use devServer.proxy from webpack & make work.

What problem does this feature solve?

CORS request to API in development envrionemtn.

What does the proposed API look like?

It doesn't require new API, but it should be something like that:

module.exports = config = {
    configureWebpack: {
        devServer: {
            proxy: {
                "/api": {
                    target: "http://localhost:8090/",
                    secure: false
                }
            }
        },
    }
}; 

How should this be implemented in your opinion?

Replace deprecated (see https://github.com/webpack-contrib/webpack-serve ) webpack-serve there https://github.com/vuejs/vuepress/blob/master/lib/dev.js#L97 and use webpack-dev-server instead ( https://github.com/webpack/webpack-dev-server ).

Are you willing to work on this yourself?**

I don't know webpack enought.

@ulivz
Copy link
Member

ulivz commented Mar 9, 2019

Thanks for the report, and it has been addressed at #1195.

@ulivz ulivz closed this as completed Mar 9, 2019
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

2 participants