diff options
| author | Johann-S <[email protected]> | 2018-06-27 11:33:07 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2018-07-19 19:59:45 +0200 |
| commit | eb81c39f2c36d88d4ebc062a2fa179980827e8be (patch) | |
| tree | 245e42357d705cf51689cf8e508292e38d2a3e7c /site | |
| parent | 6cf8700fd9fd096855d6510ceef9c1ff225f8e40 (diff) | |
| download | bootstrap-eb81c39f2c36d88d4ebc062a2fa179980827e8be.tar.xz bootstrap-eb81c39f2c36d88d4ebc062a2fa179980827e8be.zip | |
feat(plugins): allow to import separate plugins
Diffstat (limited to 'site')
| -rw-r--r-- | site/docs/4.1/getting-started/javascript.md | 4 | ||||
| -rw-r--r-- | site/docs/4.1/getting-started/webpack.md | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/site/docs/4.1/getting-started/javascript.md b/site/docs/4.1/getting-started/javascript.md index da7011e76..20500c2af 100644 --- a/site/docs/4.1/getting-started/javascript.md +++ b/site/docs/4.1/getting-started/javascript.md @@ -8,7 +8,9 @@ toc: true ## Individual or compiled -Plugins can be included individually (using Bootstrap's individual `*.js` files), or all at once using `bootstrap.js` or the minified `bootstrap.min.js` (don't include both). +Plugins can be included individually (using Bootstrap's individual `js/dist/*.js`), or all at once using `bootstrap.js` or the minified `bootstrap.min.js` (don't include both). + +If you use a bundler (Webpack, Rollup...), you can use `/js/dist/*.js` files which are UMD ready. ## Dependencies diff --git a/site/docs/4.1/getting-started/webpack.md b/site/docs/4.1/getting-started/webpack.md index e8a57cf96..59211b075 100644 --- a/site/docs/4.1/getting-started/webpack.md +++ b/site/docs/4.1/getting-started/webpack.md @@ -22,7 +22,7 @@ Alternatively, you may **import plugins individually** as needed: {% highlight js %} import 'bootstrap/js/dist/util'; -import 'bootstrap/js/dist/dropdown'; +import 'bootstrap/js/dist/alert'; ... {% endhighlight %} @@ -30,11 +30,6 @@ Bootstrap is dependent on [jQuery](https://jquery.com/) and [Popper](https://pop these are defined as `peerDependencies`, this means that you will have to make sure to add both of them to your `package.json` using `npm install --save jquery popper.js`. -{% capture callout %} -Notice that if you chose to **import plugins individually**, you must also install [exports-loader](https://github.com/webpack-contrib/exports-loader) -{% endcapture %} -{% include callout.html content=callout type="warning" %} - ## Importing Styles ### Importing Precompiled Sass |
