gulp配置时使用http-proxy-middleware做代理,有人知道怎么配置多重代理吗?
gulp.task('server', function() {
connect.server({
livereload: true,
root: "./output",
port: 8080,
middleware: function(connect, opt) {
return [
proxy('/test',{
target: 'http://localhost:8000',
changeOrigin: true,
})
]
}
});
});
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师