February 28, 2016

Change bowers's default components folder

When you do a bower install the components gets saved to bower_components folder by default. If you want to change the directory of the installation create a bower configuration file and mention the path were you need it to be installed.

For example,

{
  "directory" : "public/vendor"
}

As you mentioned the directory the components will be installed to vendor folder inside public folder of your project.

Save this file as .bowerrc. That's it. When you do a bower install now the components get saved to the specified directory.

No comments:

Post a Comment

Popular Posts

Views