Install Bower components into two different directories?

后端 未结 3 696
一个人的身影
一个人的身影 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:30

    Maybe You can have .bowerrc files in different directories, where you can config "directory" key to point to bower components directory.

    But you will need to cd to correct directory before bower install whatever:

    app/
      scripts/
        .bowerrc
      styles/
        .bowerrc
    tests/
      .bowerrc
    

提交回复
热议问题