]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
download.md: reword import bootstrap section.
authorJohann-S <johann.servoire@gmail.com>
Wed, 20 Feb 2019 08:34:43 +0000 (10:34 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 20 Feb 2019 20:05:45 +0000 (22:05 +0200)
site/docs/4.3/getting-started/download.md

index 394a32606a804398ce1b98cca775a5617944195e..c93a94bb4547aa541b6edda39af2967858e966bc 100644 (file)
@@ -55,7 +55,8 @@ Install Bootstrap in your Node.js powered apps with [the npm package](https://ww
 npm install bootstrap
 {% endhighlight %}
 
-`require('bootstrap')` will load all of Bootstrap's plugins onto the `window` object. The `bootstrap` module itself does not export anything. You can manually load Bootstrap's plugins individually by loading the `/js/*.js` files under the package's top-level directory.
+`const bootstrap = require('bootstrap')` or `import bootstrap from 'bootstrap'` will load all of Bootstrap's plugins onto a `bootstrap` object.
+The `bootstrap` module itself exports all of our plugins. You can manually load Bootstrap's plugins individually by loading the `/js/dist/*.js` files under the package's top-level directory.
 
 Bootstrap's `package.json` contains some additional metadata under the following keys: