Bower: Install package to custom directory

Usually I stored all my static files on “static” directory within my django project and today I start to using Bower to manage my frontend dependency.

By default all bower package will stored on “bower_components” directory and here is how to store bower installed dependency to a custom directory.

First of all, what you need to do is just create “.bowerrc” inside your project root. then put this configuration on it.

  "directory" : "your/custom/path"

Now your bower will installed to your defined directory.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.