Download
Dhawunirodha Bootstrap kuti utore yakaunganidzwa CSS uye JavaScript, kodhi kodhi, kana kuisanganisira neyako yaunofarira mapakeji mamaneja senge npm, RubyGems, nezvimwe.
Yakagadzirwa CSS uye JS
Dhawunirodha yakagadzirira-kushandisa-yakaunganidzwa kodhi yeBootstrap v5.1.3 kudonhedza nyore mupurojekiti yako, iyo inosanganisira:
- Yakaunganidzwa uye yakacheneswa CSS masumbu (ona CSS mafaira ekuenzanisa )
- Yakaunganidzwa uye yakagadziriswa JavaScript plugins (ona JS mafaira kuenzanisa )
Izvi hazvisanganisire zvinyorwa, mafaera ekutanga, kana chero sarudzo yeJavaScript inotsamira sePopper.
Source mafaira
Unganidza Bootstrap neako ega pombi pombi nekudhawunirodha yedu sosi Sass, JavaScript, uye zvinyorwa zvinyorwa. Iyi sarudzo inoda mamwe maturusi ekuwedzera:
- Sass compiler yekuunganidza Sass source mafaera muCSS mafaera
- Autoprefixer yeCSS mutengesi prefixing
Kana iwe ukada yedu yakazara seti yekuvaka maturusi , iwo anosanganisirwa kugadzira Bootstrap uye zvinyorwa zvayo, asi iwo anogona kunge asina kukodzera kune ako pachako zvinangwa.
Mienzaniso
Kana iwe uchida kudhawunirodha uye kuongorora yedu mienzaniso , unogona kubata iyo yakatovakwa mienzaniso:
CDN kuburikidza nejsDelivr
Svetuka kurodha nejsDelivr kuti uunze vhezheni yakachengetwa yeBootstrap yakaunganidzwa CSS neJS kupurojekiti yako.
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
Kana iwe uri kushandisa yedu yakaunganidzwa JavaScript uye uchida kusanganisira Popper zvakasiyana, wedzera Popper pamberi peJS yedu, kuburikidza neCDN zviri nani.
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
Package mamaneja
Dhonza muBootstrap's source mafaera mune ingangoita chero chirongwa chine mamwe anonyanya kufarirwa mapakeji maneja. Hazvina mhosva kuti maneja wepakeji, Bootstrap inoda Sass compiler uye Autoprefixer yekuseta inofanana neshanduro dzedu dzepamutemo dzakaunganidzwa.
npm
Isa Bootstrap mune yako Node.js powered apps ine npm package :
npm install bootstrap
const bootstrap = require('bootstrap')
kana import bootstrap from 'bootstrap'
kuti ichaisa ese maplugins eBootstrap pachinhu bootstrap
. Iyo bootstrap
module pachayo inotumira kunze ese edu plugins. Iwe unogona kurodha maplugins eBootstrap wega nekuisa /js/dist/*.js
mafaera pasi pepakeji yepamusoro-level directory.
Bootstrap's package.json
ine imwezve metadata pasi pemakiyi anotevera:
sass
- nzira yeBootstrap's main Sass source filestyle
- nzira yeBootstrap's isina-minified CSS iyo yakagadziridzwa uchishandisa iyo default marongero (hapana kugadzirisa)
shinda
Isa Bootstrap mune yako Node.js powered apps ine yarn package :
yarn add bootstrap
RubyGems
Isa Bootstrap mumapurogiramu ako eRuby uchishandisa Bundler ( yakakurudzirwa ) uye RubyGems nekuwedzera mutsara unotevera kune yako Gemfile
:
gem 'bootstrap', '~> 5.1.3'
Neimwe nzira, kana usiri kushandisa Bundler, unogona kuisa iyo gem nekumhanyisa uyu murairo:
gem install bootstrap -v 5.1.3
Ona gem's README kuti uwane rumwe ruzivo.
Munyori
Iwe unogona zvakare kuisa nekugadzirisa Bootstrap's Sass uye JavaScript uchishandisa Composer :
composer require twbs/bootstrap:5.1.3
NuGet
Kana ukagadzira mu.NET, unogonawo kuisa nekugadzirisa Bootstrap's CSS kana Sass neJavaScript uchishandisa NuGet :
Install-Package bootstrap
Install-Package bootstrap.sass