我有一个使用 bootstrap 2.3.2 的开源 web 应用程序,目前我无法迁移到 bootstrap 3(完全不同的网格系统) - 我正在尝试移动 webapp 以使用 bower 来处理依赖关系,但是 bower install bootstrap#2.3.2
获取看起来像未构建的原始代码仓库的东西,例如没有 css 文件夹,只有单独的 less
文件,没有人缩小 bootstrap.min.js
但是多个不同的插件(未连接)等..
这是可以修复的吗?我应该以不同的方式安装吗?
最佳答案
你做的一切都是正确的。看看README
对于 v2.3.2
在 github
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/