Skip to content

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

@Jamesxiehailong

Description

@Jamesxiehailong

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
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions