gulp+browser-sync怎么代理多个地址
比如:
gulp.task('browserSync',function() {
const aipProxy = proxy('/api', {
target: "http://192.168.x.x:8080",
changeOrigin: true,
pathRewrite: {
'^/api': '/', //需要rewrite的,
}
});
browserSync.init({
server: {
baseDir: 'app',
middleware:[aipProxy],
index: "index.html"
},
host:'localhost',
port:7777,
});
});
现在还想增加一个代理地址怎么加