From ccc3eb5cc608b4642196581ab1678ecfdae812a4 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 14 Jan 2015 18:43:04 -0800 Subject: [PATCH] document usage of npm package; fixes #15127 [skip sauce] --- docs/_includes/getting-started/download.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/_includes/getting-started/download.html b/docs/_includes/getting-started/download.html index fd81a405bf..7059dc6d12 100644 --- a/docs/_includes/getting-started/download.html +++ b/docs/_includes/getting-started/download.html @@ -44,6 +44,16 @@

You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using Bower:

{% highlight bash %}$ bower install bootstrap{% endhighlight %} +

Install with npm

+

You can also install Bootstrap using npm:

+ {% highlight bash %}$ npm install bootstrap{% 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:

+ +

Autoprefixer required for Less/Sass

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.