gpt4 book ai didi

twitter-bootstrap - 从 github 克隆后编译 Twitter Bootstrap - 输出在哪里?

转载 作者:行者123 更新时间:2023-12-02 02:10:33 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
twitter bootstrap make from source

我正在尝试了解如何构建 Twitter Bootstrap。似乎有两种方法可以访问 Twitter Bootstrap。

首先是下载 bootstrap.zip , 可从 http://twitter.github.com/bootstrap/assets/bootstrap.zip 获得然后解压,目录结构如下:

.
└── bootstrap/
├── css/
│   ├── bootstrap-responsive.css
│   ├── bootstrap-responsive.min.css
│   ├── bootstrap.css
│   └── bootstrap.min.css
├── img/
│   ├── glyphicons-halflings-white.png
│   └── glyphicons-halflings.png
└── js/
├── bootstrap.js
└── bootstrap.min.js

4 directories, 8 files

如果我理解正确,我所要做的就是删除 bootstrap目录及其下的所有文件,放入我的项目目录,然后在我的 HTML 文件中包含类似以下内容的标记:<link type="text/css" rel="stylesheet" href="location_of_my_twitter_bootstrap_file" />

获取 Twitter Bootstrap 的第二种方法是克隆 github 项目,然后使用 make build 它。我已经安装了Node.js我用过npm安装几个包,例如 less jshint recess uglify-jsconnect .当我运行 make来自 bootstrap 目录的命令似乎有效,我得到以下输出:

##################################################
Building Bootstrap...
##################################################

Running JSHint on javascript... ✔ Done
Compiling LESS with Recess... ✔ Done
Compiling documentation... ✔ Done
Compiling and minifying javascript... ✔ Done

##################################################
Bootstrap successfully built at 09:36AM.
##################################################

Thanks for using Bootstrap,
<3 @mdo and @fat

但是,我没有得到与解压缩 zip 文件给我的目录结构相同的 Bootstrap 目录。相反,bootstrap/docs/assets 下的一堆文件已更新,它们似乎与我从 bootstrap.zip 获得的文件不对应(例如,还有更多)。

我的问题是:克隆github项目有什么好处,使用make的目的是什么?就像我所做的那样,如何从我可以从我的项目链接到的 Twitter Bootstrap 源文件干净地生成 CSS 和 JS 文件?

谢谢。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com