Install Bower components into two different directories?

后端 未结 3 688
一个人的身影
一个人的身影 2021-01-30 17:43

When using CSS and JS components, is it possible, or even, does it make sense to install them to different directories?

.
|-- app
    |-- scripts
        |-- com         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-30 18:08

    Bower needs to keep track of every component you install. That would be very hard if they were split up in multiple locations. For Sass development, just put the components folder in the Sass search path.


    There are grunt tasks that can assist you in splitting it up if you insist on doing that:

    (though not recommended)

    • grunt-bower-task
    • grunt-bower-organiser
    • grunt-bower

提交回复
热议问题