本文介绍了Twitter Bootstraps config.json - 它有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一种方法来只包含特定的引导程序部分(css 或 js),但到目前为止我只是写下我正在使用的内容的列表,然后在他们的定制器页面上勾选这些框.

I'm trying to find a way to only include specific bootstrap sections (css or js) but so far I just write a list down of what I am using, then tick those boxes on their customiser page.

但是我注意到在 zip 文件中下载了一个 config.json 文件,它有什么作用?我目前使用 bower 作为我的资产包管理器和 gulp 作为我的资产管道.但我不认为 config.json 与他们相关?

However I noticed a config.json file that gets downloaded in the zip file, what does it do? I currently use bower as my asset package manager and gulp as my asset pipeline. But I don't think a config.json is relevant to them?

谢谢.

推荐答案

config.json 文件可与从 github 下载的完整 master 一起使用,以使用 grunt 配置您的构建.

The config.json file can be used with the full master download from github to config your build with grunt.

人们询问更多细节:Bootstrap 使用 grunt,这是一种类似于 Java 的 Ant 的专注于 JavaScript 的构建实用程序,可以构建项目并执行自动化任务.grunt 构建理论上可以读取 config.json 文件并修改其构建以满足您需要的一些特定任务,方法是更改​​默认的 config.json 文件并添加或减去其中包含的特定设置.

[edit]Folks asked for more details: Bootstrap uses grunt, a JavaScript focused build utility similar to Java's Ant, that can build projects and executed automated tasks. The grunt build could theoretically read the config.json file and modify its build to meet some specific tasks you need through changing the default config.json file and adding to, or subtracting from, the specific settings it contains.

披露:我个人不使用 grunt.js,但我非常尊重它的创造者 Ben.我可能应该学习如何使用这个工具.

Disclosure: I don't personally use grunt.js, but I have much respect for its creator, Ben. I should probably learn how to use this tool.

这篇关于Twitter Bootstraps config.json - 它有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 20:26