Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter Bootstraps config.json - what does it do?

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.

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?

Thank you.

like image 245
David Avatar asked Jan 29 '14 14:01

David


1 Answers

The config.json file that is downloaded is nothing but a reminder of what your settings were when you downloaded. I would assume there will be some future functionality that would allow you to upload that file in to the website and reproduce the customized settings, but that feature doesn't currently exist, as far as I can tell.

If you are using bower, I would suggest using it to download Bootstrap for you. You can then use a LESS file to pull in the CSS features you want, and compile it using gulp/grunt in to your public asset directory. You can also use gulp/grunt to copy over the individual JS files you want in to a single file in that same asset directory.

like image 73
Sean Ryan Avatar answered Sep 28 '22 13:09

Sean Ryan