Downloda
Download Bootstrap ku kuma CSS na JavaScript leyi hlengeletiweke, khodi ya xihlovo, kutani u yi katsa na vafambisi va tiphasela lava u va tsakelaka ku fana na npm, RubyGems, na swin’wana.
Ku hlengeletiwile CSS na JS
Download khodi leyi hlengeletiweke leyi lunghekeleke ku tirhisiwa ya Bootstrap v5.2.1 ku olova ku wela eka phurojeke ya wena, leyi katsaka:
- Swihlanganisi swa CSS leswi hlengeletiweke ni leswi hungutiweke (vona ku pimanisiwa ka tifayela ta CSS ) .
- Ti-plugin ta JavaScript leti hlengeletiweke ni leti hungutiweke (vona ku pimanisiwa ka tifayela ta JS ) .
Leswi a swi katsi matsalwa, tifayela ta xihlovo, kumbe ku titshega kwihi na kwihi ka JavaScript loku nga hlawuriki ku fana na Popper.
Tifayili ta xihlovo
Hlengeleta Bootstrap hi phayiphi ya wena ya nhundzu hi ku kopa xihlovo xa hina xa Sass, JavaScript, na tifayela ta matsalwa. Nhlawulo lowu wu lava switirhisiwa swo karhi leswi engetelekeke:
- Sass compiler yo hlengeleta tifayela ta xihlovo xa Sass eka tifayela ta CSS
- Autoprefixer ya xirhangi xa muxavisi wa CSS
Should you require our full set of build tools , swi katsiwile ku hluvukisa Bootstrap na ti docs ta yona, kambe swi nga endleka swi nga fanelanga eka swikongomelo swa wena.
Swikombiso
Loko u lava ku kopa ni ku kambisisa swikombiso swa hina , u nga khoma swikombiso leswi se swi akiweke:
CDN hi ku tirhisa jsDelivr
Tlula ku dawuniloda hi jsDelivr ku yisa vuhundzuluxeri lebyi hlayisiweke bya Bootstrap’s compiled CSS na JS eka phurojeke ya wena.
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
Loko u tirhisa JavaScript ya hina leyi hlengeletiweke naswona u tsakela ku katsa Popper hi ku hambana, engetela Popper emahlweni ka JS ya hina, hi ku tirhisa CDN hi ku tsakela.
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>
Vafambisi va tiphasela
Koka tifayela ta xihlovo ta Bootstrap eka kwalomu ka phurojeke yihi na yihi na van’wana va vafambisi va tiphasela lava dumeke swinene. Ku nga khathariseki mufambisi wa tiphasela, Bootstrap yi ta lava muhlengeleti wa Sass na Autoprefixer eka xiyimiso lexi fambelanaka na tivhidiyo ta hina ta ximfumo leti hlengeletiweke.
npm
Nghenisa Bootstrap eka ti-app ta wena leti tirhisaka Node.js hi phasela ra npm :
npm install [email protected]
const bootstrap = require('bootstrap')
kumbe import bootstrap from 'bootstrap'
yi ta layicha ti-plugin hinkwato ta Bootstrap eka bootstrap
nchumu wo karhi. Modyuli hi yoxe yi bootstrap
rhumela ehandle ti-plugin ta hina hinkwato. U nga layicha hi voko ti-plugin ta Bootstrap hi toxe hi ku layicha /js/dist/*.js
tifayela ehansi ka xikombo xa xiyimo xa le henhla xa phasela.
Bootstrap's package.json
yi na metadata yin'wana yo engetela ehansi ka swilotlelo leswi landzelaka:
sass
- ndlela ya fayili ya xihlovo xa Sass leyikulu ya Bootstrapstyle
- ndlela ya Bootstrap's non-minified CSS leyi hlengeletiweke hi ku tirhisa swiletelo swa ntolovelo (ku hava ku cinca)
yarn
Nghenisa Bootstrap eka ti-app ta wena leti tirhisaka Node.js hi phasela ra yarn :
yarn add [email protected]
RubyGems yi vula leswaku
Nghenisa Bootstrap eka ti-app ta wena ta Ruby hi ku tirhisa Bundler ( swi ringanyetiwa ) na RubyGems hi ku engetela layini leyi landzelaka eka ya wena Gemfile
:
gem 'bootstrap', '~> 5.2.1'
Handle ka sweswo, loko u nga tirhisi Bundler, u nga nghenisa gem hi ku tirhisa xileriso lexi:
gem install bootstrap -v 5.2.1
Vona README ya gem ku kuma vuxokoxoko byo tala.
Muqambhi
U nga ha tlhela u nghenisa no lawula Sass na JavaScript ya Bootstrap hi ku tirhisa Composer :
composer require twbs/bootstrap:5.2.1
NuGet
Loko u hluvukisa eka .NET Framework, u nga ha tlhela u nghenisa ni ku lawula CSS ya Bootstrap kumbe Sass na JavaScript hi ku tirhisa NuGet . Tiphurojeke letintshwa ti fanele ku tirhisa libman kumbe ndlela yin’wana tanihileswi NuGet yi endleriweke khodi leyi hlengeletiweke, ku nga ri nhundzu ya le mahlweni.
Install-Package bootstrap
Install-Package bootstrap.sass