Bower install dependency to a specific subdirectory

白昼怎懂夜的黑 提交于 2019-12-24 16:27:20

问题


How do I install a dependency into a specific subdirectory using Bower? I'm working on an application built on AngularJS that requires localization. One of the libraries I'm using is looking for localization files in angular/angular_i18n. However, I'm developing with Angular 1.2 rc3 and the localization files are not part of the package so I have to install them separately.

How can I bower install angular-i18n into components/angular/angular-i18n/?

Help would be totally appreciated.


回答1:


You can't. Bower uses a single location to store packages. However you can use tools like one of these grunt tasks to copy it over in the build-step.




回答2:


you can also try to use this fork: https://github.com/hyperweb2/upt

that also implements subdirectory installation feature



来源:https://stackoverflow.com/questions/19552672/bower-install-dependency-to-a-specific-subdirectory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!