What parts of the bootstrap are needed?
Now I am using bootstrap-loader . With it, you can customize which parts of Bootstrap to use with configuration options and . It most likely mimics what you can choose from the Customize Bootstrap page . Most of this is self-explanatory. But not all. styles
scripts
With styles in mind. Most likely you will need it mixins
. They can be used by any other piece of Bootstrap code. normalize
also looks like a thing that cannot be turned off. Then scaffolding
... What is it? component-animations
? It's probably best not to turn it off. close
? Can I only disable buttons close
? It's probably best to leave it on. utilities
? responsive-utilities
?
Consideration of scripts. transitions
? collapse
? What parts of Bootstrap use them?
In other words, what parts are you most likely not to want to disconnect? Especially the ones that you might not have noticed right away. Is there any non-obvious relationship between them?
source to share
CSS
Yes, you shouldn't delete mixins
, normalize
and scaffolding
(base styles for elements html
, body
etc.).
close
refers to warnings (evasive) and modal.
utilities
and responsive-utilities
- you can remove them if you do not use them (classes, such as hidden
, visible-sm
, text-left
, etc.). And if you are using for example navbars
, you have to include the component nav
. And it probably input-groups
won't work without the components forms
. Similarly buttons
and button-groups
.
Scenarios:
Transition.js is used by other Bootstrap plugins (for example, collapse
to check if the browser supports CSS transitions and collapses the CSS plugin component-animations
).
Button.js - This feature has been deprecated in version 3.3.5 and was removed in version 4.
Popovers requires the tooltip plugin to be included in your Bootstrap version.
I think the rest is self-evident.
source to share