Bootstrap (currently v{{ site.current_version }}) has a few easy ways to quickly get started, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.
Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.
Source Less, JavaScript, and font files, along with our docs. Requires a Less compiler and some setup.
Bootstrap ported from Less to Sass for easy inclusion in Rails, Compass, or Sass-only projects.
The folks over at MaxCDN graciously provide CDN support for Bootstrap's CSS and JavaScript. Just use these Bootstrap CDN links.
{% highlight html %} {% endhighlight %}You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using Bower:
{% highlight bash %}$ bower install bootstrap{% endhighlight %}You can also install Bootstrap using npm:
{% highlight bash %}$ npm install bootstrap@3{% endhighlight %}require('bootstrap')
will load all of Bootstrap's jQuery plugins onto the jQuery object. The bootstrap
module itself does not export anything. You can manually load Bootstrap's jQuery plugins individually by loading the /js/*.js
files under the package's top-level directory.
Bootstrap's package.json
contains some additional metadata under the following keys:
less
- path to Bootstrap's main Less source filestyle
- path to Bootstrap's non-minified CSS that's been precompiled using the default settings (no customization)You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using Composer:
{% highlight bash %}$ composer require twbs/bootstrap{% endhighlight %}Bootstrap uses Autoprefixer to deal with CSS vendor prefixes. If you're compiling Bootstrap from its Less/Sass source and not using our Gruntfile, you'll need to integrate Autoprefixer into your build process yourself. If you're using precompiled Bootstrap or using our Gruntfile, you don't need to worry about this because Autoprefixer is already integrated into our Gruntfile.