How do I install bower dependencies in a specific directory?

后端 未结 1 1659
野的像风
野的像风 2021-01-05 02:05

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 <

相关标签:
1条回答
  • 2021-01-05 02:35

    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!

    0 讨论(0)
提交回复
热议问题