mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
feat(plugins): allow to import separate plugins
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user