twitter-bootstrap - Bower:使用 bower 安装旧版 Bootstrap (2.3.2)

标签 twitter-bootstrap bower

我有一个使用 bootstrap 2.3.2 的开源 web 应用程序,目前我无法迁移到 bootstrap 3(完全不同的网格系统) - 我正在尝试移动 webapp 以使用 bower 来处理依赖关系,但是 bower install bootstrap#2.3.2获取看起来像未构建的原始代码仓库的东西,例如没有 css 文件夹,只有单独的 less文件,没有人缩小 bootstrap.min.js但是多个不同的插件(未连接)等..

这是可以修复的吗?我应该以不同的方式安装吗?

最佳答案

你做的一切都是正确的。看看README对于 v2.3.2github

Bootstrap includes a makefile with convenient methods for working with the framework. Before getting started, be sure to install the necessary local dependencies:

$ npm install When completed, you'll be able to run the various make commands provided:

build - make

Runs the recess compiler to rebuild the /less files and compiles the docs. Requires recess and uglify-js.

test - make test

Runs jshint and qunit tests headlessly in phantomjs (used for ci). Depends on having phantomjs installed.

watch - make watch

关于twitter-bootstrap - Bower:使用 bower 安装旧版 Bootstrap (2.3.2),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21376440/

相关文章:

git - OwlFonk/OwlCarousel 挂了?在我们的 bower.json 中映射依赖项的位置

css - twitter-bootstrap:将鼠标悬停在 <a> 标签内的 btn 组上时,如何去掉带下划线的按​​钮文本?

javascript - twitter bootstrap 动态显示模态 - 递归错误太多

gruntjs - Grunt 可以/应该在没有 Npm 的情况下与 Bower 一起使用吗?

javascript - 如何更改一个组件的 bower-installer 路径

gruntjs - 使用 grunt-wiredep 进行 Grunt + Bower 的绝对路径

gruntjs - 配置 grunt bower-install 时遇到问题

html - 在全尺寸横幅上从方框向右移动

css - 使 div 出现在事件状态

javascript - 根据导航栏上的选项更改 HTML 页面的内容