凉亭代理配置 [英] bower proxy configuration

查看:70
本文介绍了凉亭代理配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以配置Bower不仅使用代理,还可以忽略某些域的代理配置?

is there a way to configure bower not only to use a proxy but ignore the proxy configuration for some domains?

我有问题,我将运行我们自己开发的组件的内部凉亭注册表。对于该存储库,我想忽略代理配置。

I have the problem, that I will run an internal bower registry for our own developed components. For that repository I would like to ignore the proxy configuration.

推荐答案

有关信息,请在您的 .bowerrc中文件,您可以添加一个no-proxy属性。我不知道从什么时候开始支持它,但是它适用于Bower 1.7.4

For info, in your .bowerrc file you can add a no-proxy attribute. I don't know since when it is supported but it works on bower 1.7.4

.bowerrc:

{
  "directory": "bower_components", 
  "proxy": "http://yourProxy:yourPort",
  "https-proxy":"http://yourProxy:yourPort",
  "no-proxy":"myserver.mydomain.com"
}

.bowerrc 应该位于Javascript项目的根文件夹中,您启动bower命令。您也可以将其放在主文件夹中(〜/ .bowerrc )。

.bowerrc should be located in the root folder of your Javascript project, the folder in which you launch the bower command. You can also have it in your home folder (~/.bowerrc).

这篇关于凉亭代理配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆