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

如何在这个使用了atool-build的项目中,配置反向代理,有的时候开发环境需要转发cookie和token等字段 #311

Open
Jamesxiehailong opened this issue Mar 10, 2018 · 0 comments

Comments

@Jamesxiehailong
Copy link

webpackConfig.devServer = {
historyApiFallback: true,
contentBase: "./",
quiet: false, //控制台中不输出打包的信息
noInfo: false,
hot: true, //开启热点
inline: true, //开启页面自动刷新
lazy: false, //不启动懒加载
progress: true, //显示打包的进度
watchOptions: {
aggregateTimeout: 300
},
port: '8088', //设置端口号
proxy: {
'/admin/*': {
target: 'http://XXXXX:9100/',
secure: true
}
}
}

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