在Booter中使用Bootstrap [英] Using bootstrap with bower

查看:102
本文介绍了在Booter中使用Bootstrap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用带有弓箭手的引导程序,但是由于它会克隆整个存储库,因此没有CSS和其他内容。

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

这是否意味着我需要在自己的构建过程中包含构建Bootstrap?或者如果我错了,什么是正确的工作流程?

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?

推荐答案

我最终使用以下命令结束了:
安装-保存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.

这样做的缺点是它破坏了Bower的哲学,因为 bower更新不会更新引导程序。

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

但是我认为它比使用 bower更干净安装引导程序,然后在工作流程中构建引导程序。

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.

更新::他们现在似乎在发行dist文件夹的版本(请参阅: https://github.com/twbs/bootstrap/pull/6342 ),因此只需使用 bower install bootstrap 并指向资产在 dist 文件夹

Update : seems they now version a dist folder (see: https://github.com/twbs/bootstrap/pull/6342), so just use bower install bootstrap and point to the assets in the dist folder

这篇关于在Booter中使用Bootstrap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆