How do I install bower dependencies in a specific directory?

你。 提交于 2019-11-30 04:24:43

问题


I'm building a yeoman generator for simple websites. I want to include a popular JavaScript library in my scaffold.

It's easy enough with bower install <mylib>. Bower then installs the library in the directory bower_components.

How can configure bower to install that particular library in a particular directory?


回答1:


Create a file called .bowerrc in the same directory as your bower.json with the contents:

{
  "directory": "bower"
}

Bower will then install all dependencies in the directory "bower" or whatever directory you specify.

Hope that helps!



来源:https://stackoverflow.com/questions/19671533/how-do-i-install-bower-dependencies-in-a-specific-directory

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