Bower - 如何将包下载到另一个文件夹而不是 bower.json 所在的文件夹
Bower - how to download packages another folder instead the folder where the bower.json is there
我在 d:\myProject 下初始化了一个 bower 项目,如果我 运行 bower install angularjs
包被复制到同一个文件夹中。但是我需要做的是复制d:\myprojects\src\resources\static下的包。我该怎么做?
Bower 的 docs 告诉您,在 .bowerrc
文件中添加 "directory"
标签将使 Bower 将下载的包放入该目录。
请注意,该路径是相对于您拥有项目 json 的位置的,因此在您的情况下:
{
"directory": "src/resources/static/"
...
}
另请参阅此 answer and this one。
我在 d:\myProject 下初始化了一个 bower 项目,如果我 运行 bower install angularjs
包被复制到同一个文件夹中。但是我需要做的是复制d:\myprojects\src\resources\static下的包。我该怎么做?
Bower 的 docs 告诉您,在 .bowerrc
文件中添加 "directory"
标签将使 Bower 将下载的包放入该目录。
请注意,该路径是相对于您拥有项目 json 的位置的,因此在您的情况下:
{
"directory": "src/resources/static/"
...
}
另请参阅此 answer and this one。