Using bootstrap with bower

xavier.seignard picture xavier.seignard · Jan 22, 2013 · Viewed 120.3k times · Source

I'm trying to use bootstrap with bower, but since it clones the whole repo, there is no CSS and other stuff.

Does it means that I need to include building Bootstrap in my own build process? Or if I'm wrong, what's the right workflow?

Answer

xavier.seignard picture xavier.seignard · Jan 25, 2013

I finally ended using the following : bower install --save http://twitter.github.com/bootstrap/assets/bootstrap.zip

Seems cleaner to me since it doesn't clone the whole repo, it only unzip the required assests.

The downside of that is that it breaks the bower philosophy since a bower update will not update bootstrap.

But I think it's still cleaner than using bower install bootstrap and then building bootstrap in your workflow.

It's a matter of choice I guess.