Skip to content

Commit

Permalink
Update optimize.md
Browse files Browse the repository at this point in the history
For some weird reason, using "Exports" as the callout header leads to TypeError coming from clipboard.js
  • Loading branch information
XhmikosR committed Oct 20, 2020
1 parent 480561c commit 4fca7dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions site/content/docs/5.0/customize/optimize.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ import 'bootstrap/js/dist/modal';
This way, you're not including any JavaScript you don't intend to use for components like buttons, carousels, and tooltips. If you're importing dropdowns, tooltips or popovers, be sure to list the Popper.js dependency in your `package.json` file.

{{< callout info >}}
### Exports
### Default Exports

Files in `bootstrap/js/dist` use the **default export**, so if you want to use one of them you have to do the following:

{{< highlight js >}}
```js
import Modal from 'bootstrap/js/dist/modal'

const modal = new Modal(document.getElementById('myModal'))
{{< /highlight >}}
```
{{< /callout >}}

## Autoprefixer .browserslistrc
Expand Down

0 comments on commit 4fca7dd

Please sign in to comment.