aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-10-20 11:13:42 +0300
committerXhmikosR <[email protected]>2020-10-20 11:17:06 +0300
commit4fca7ddd7349f657fccf9c8864fc64f4b1e4e5a6 (patch)
treedaf67c5616c02e9fbb373525d3657d20558b901e /site
parent480561c64b377698a712501e690d2a3d8753c87b (diff)
downloadbootstrap-4fca7ddd7349f657fccf9c8864fc64f4b1e4e5a6.tar.xz
bootstrap-4fca7ddd7349f657fccf9c8864fc64f4b1e4e5a6.zip
Update optimize.md
For some weird reason, using "Exports" as the callout header leads to TypeError coming from clipboard.js
Diffstat (limited to 'site')
-rw-r--r--site/content/docs/5.0/customize/optimize.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/site/content/docs/5.0/customize/optimize.md b/site/content/docs/5.0/customize/optimize.md
index a554e3c34..68d95fa41 100644
--- a/site/content/docs/5.0/customize/optimize.md
+++ b/site/content/docs/5.0/customize/optimize.md
@@ -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