Buuka ku bigambo ebikulu Buuka ku docs navigation
in English

Okufuna

Wano wefunire Bootstrap okufuna CSS ne JavaScript ezikung’aanyiziddwa, source code, oba okugiteekamu n’abaddukanya package bo abasinga okwagala nga npm, RubyGems, n’ebirala.

Yakungaanya CSS ne JS

Wano wefunire code ekunganyiziddwa eyeetegefu okukozesebwa eya Bootstrap v5.0.2 okusobola okwanguyirwa okugwa mu pulojekiti yo, nga muno mulimu:

Kino tekirimu biwandiiko, fayiro z'ensibuko, oba byonna ebisinziira ku JavaScript eby'okwesalirawo nga Popper.

Okufuna

Fayiro z’ensibuko

Kuŋŋaanya Bootstrap ne payipu yo ey'eby'obugagga ng'owanula fayiro zaffe ez'ensibuko Sass, JavaScript, ne fayiro z'ebiwandiiko. Enkola eno yeetaaga ebikozesebwa ebirala:

Should you require our full set of build tools , ziteekeddwamu okukola Bootstrap ne docs zaayo, naye ziyinza okuba nga tezisaanira bigendererwa byo.

Download source

Eby’okulabirako

Bw’oba ​​oyagala okuwanula n’okwekenneenya ebyokulabirako byaffe , osobola okukwata ebyokulabirako ebyazimbibwa edda:

Download Ebyokulabirako

CDN ng’oyita mu jsDelivr

Buuka okuwanula ne jsDelivr okutuusa enkyusa eterekeddwa eya Bootstrap's compiled CSS ne JS ku pulojekiti yo.

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>

Bw’oba ​​okozesa JavaScript yaffe ekung’aanyiziddwa era ng’oyagala okussaamu Popper okwawukana, yongerako Popper nga JS yaffe tennabaawo, ng’oyita mu CDN okusinga.

<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>

Abaddukanya ebipapula

Sika fayiro za Bootstrap ez'ensibuko kumpi mu pulojekiti yonna n'abamu ku baddukanya package abasinga okwettanirwa. Si nsonga muddukanya package, Bootstrap ejja kwetaaga Sass compiler ne Autoprefixer ku setup ekwatagana n'enkyusa zaffe entongole ezikung'aanyiziddwa.

npm

Teeka Bootstrap mu pulogulaamu zo ezikozesa Node.js nga olina npm package :

npm install bootstrap

const bootstrap = require('bootstrap')oba import bootstrap from 'bootstrap'ejja kutikka plugins zonna eza Bootstrap ku bootstrapkintu. Module bootstrapyennyini efulumya ebweru plugins zaffe zonna. Osobola okutikka mu ngalo plugins za Bootstrap kinnoomu nga otikka /js/dist/*.jsfayiro wansi wa dayirekita y'omutendera ogw'oku ntikko ogwa package.

Bootstrap's package.jsonerimu metadata endala wansi w'ebisumuluzo bino wammanga:

  • sass- ekkubo erigenda mu fayiro enkulu eya Sass ensibuko ya Bootstrap
  • style- ekkubo erigenda ku CSS ya Bootstrap etakendeezeddwa ebadde ekuŋŋaanyiziddwa nga ekozesa ensengeka ezisookerwako (tewali kulongoosa)
Tandika ne Bootstrap ng'oyita ku npm ne pulojekiti yaffe ey'okutandika! Yolekera twbs/bootstrap-npm-starter template repository olabe engeri y'okuzimba n'okulongoosa Bootstrap mu pulojekiti yo eya npm. Mulimu omukung'aanya wa Sass, Autoprefixer, Stylelint, PurgeCSS, ne Ebifaananyi bya Bootstrap.

wuzi

Teeka Bootstrap mu pulogulaamu zo ezikozesa Node.js n'ekipapula ky'obuwuzi :

yarn add bootstrap

RubyGems nga bwe kiri

Teeka Bootstrap mu pulogulaamu zo eza Ruby ng'okozesa Bundler ( esengekeddwa ) ne RubyGems ng'ogattako layini eno wammanga ku yo Gemfile:

gem 'bootstrap', '~> 5.0.2'

Ekirala, bw’oba ​​tokozesa Bundler, osobola okuteeka gem ng’okola ekiragiro kino:

gem install bootstrap -v 5.0.2

Laba README ya gem eno okumanya ebisingawo.

Omuyimbi

Osobola n'okuteeka n'okuddukanya Sass ne JavaScript za Bootstrap ng'okozesa Composer :

composer require twbs/bootstrap:5.0.2

NuGet nga bwe kiri

Bw’oba ​​okulaakulanya mu .NET, osobola n’okuteeka n’okuddukanya CSS ya Bootstrap oba Sass ne JavaScript ng’okozesa NuGet :

Install-Package bootstrap
Install-Package bootstrap.sass