yeoman / grunt-bower-requirejs

[DEPRECATED] Grunt task - Automagically wire-up installed Bower components into your RequireJS config
198 stars 24 forks source link

bower_components custom location #28

Closed crishushu closed 9 years ago

crishushu commented 9 years ago

Hi, is there any means to tell (grunt-)bower-requirejs the location of 'bower_components'? Is it mandatory to have the folder in the same path as the Gruntfile.js?

My issue comes from the following directory structure:

|- web
  |- Gruntfile.js
  |- src
  |- ...
    |- bower.json
    |- bower_components
    |- ...

The reason why I put bower* inside the 'src' folder is because, thats the path the server is pointing to otherwise the requests to the dependencies inside the 'bower_components' would fail!

Best

amiceli commented 9 years ago

You can try to create a .bowerrc file (it's a configuration file for bower) like this :

{
    "directory" : "src/yourBowerPath"
}
arthurvr commented 9 years ago

You can try to create a .bowerrc file (it's a configuration file for bower) like this

I just tested and it works fine. Can somebody close this issue?