Hi!
I just realized, as I had a lot of little display bugs, that my sub-theme does not take the local version of Bootstrap 5.x (latest). Indeed, in the code of my non-aggregated page, I have this line:
<link rel="stylesheet" media="all" href="//cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" />
My question: how to install Bootstrap locally, knowing that I went through the documentation, but I did not find anything for the B5 branch?
Here is my subtheme.librairies.yml
global-styling:
version: VERSION
js:
js/global.js: {}
js/HideMenuOnScroll.js: {}
css:
component:
css/style.css: { weight: 10 }
css/colors.css: {}
bootstrap:
js:
/libraries/popper.js/dist/umd/popper.min.js: {}
/libraries/bootstrap/dist/js/bootstrap.min.js: { weight: -48 }
css:
component:
/libraries/bootstrap/dist/css/bootstrap.min.css: {}
color.preview:
version: VERSION
css:
theme:
color/preview.css: {}
js:
color/preview.js: {}
dependencies:
- color/drupal.color
Thanks for your help.
Comments
Comment #2
floown commentedOk, I have found the way by reading this page: https://www.drupal.org/docs/8/themes/barrio-bootstrap-4-drupal-89-theme/...
Solved.
Comment #3
floown commented