Taonelouta
Download Bootstrap go hwetša CSS le JavaScript tše di kgobokeditšwego, khoutu ya mohlodi, goba o e akaretše le balaodi ba gago ba diphuthelwana bao o ba ratago go swana le npm, RubyGems, le tše dingwe.
E kgobokeditšwe CSS le JS
Download loketse ho-sebediswa khoutu ya bokella bakeng sa Bootstrap v5.0.2 ho habonolo lahla ka porojeke e ne ya hao, e leng akarelletsa:
- Diphuthelwana tša CSS tše di kgobokeditšwego le tše di fokoditšwego (bona papiso ya difaele tša CSS ) .
- Di-plugin tša JavaScript tše di kgobokeditšwego le tše di fokoditšwego (bona papiso ya difaele tša JS ) .
Se ga se akaretše ditokomane, difaele tša mothopo, goba ditshepetšo dife goba dife tša JavaScript tša boikhethelo go swana le Popper.
Difaele tša mohlodi
Kgoboketša Bootstrap ka phaephe ya gago ya matlotlo ka go taonelouta difaele tša rena tša mohlodi tša Sass, JavaScript, le ditokomane. Kgetho ye e nyaka didirišwa tše dingwe tša tlaleletšo:
- Sass mokgoboketši wa go kgoboketša difaele tša mohlodi tša Sass ka gare ga difaele tša CSS
- Sehlongwapele sa go itiriša sa hlogo ya morekiši wa CSS
Should you require our full set of build tools , ba kenyelleditswe bakeng sa ho ntshetsa pele Bootstrap le docs lona, empa ho na le kgonego ya ba sa lokelang bakeng sa merero ea hao.
Mehlala
Ge e ba o nyaka go taonelouta le go hlahloba mehlala ya rena , o ka tšea mehlala yeo e šetšego e agilwe:
CDN ka jsDelivr
Tlolela go taonelouta ka jsDelivr go tliša phetolelo yeo e bolokilwego ya Bootstrap yeo e kgobokeditšwego CSS le JS go porojeke ya gago.
<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>
Ge e ba o diriša JavaScript ya rena yeo e kgobokeditšwego gomme o rata go akaretša Popper ka thoko, oketša Popper pele ga JS ya rena, ka CDN go kaone.
<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>
Balaodi ba diphuthelwana
Hula ka difaele tša mohlodi tša Bootstrap go mo e nyakilego go ba projeke efe goba efe le ba bangwe ba balaodi ba diphuthelwana tše di tumilego kudu. Go sa kgathalege molaodi wa sephuthelwana, Bootstrap e tla nyaka mokgoboketši wa Sass le Autoprefixer bakeng sa peakanyo yeo e swanago le diphetolelo tša rena tša semmušo tše di kgobokeditšwego.
npm
Tsenya Bootstrap ka go didirišwa tša gago tšeo di šomišago Node.js ka sephuthelwana sa npm :
npm install bootstrap
const bootstrap = require('bootstrap')
goba import bootstrap from 'bootstrap'
e tla laetša di-plugin ka moka tša Bootstrap godimo ga bootstrap
selo. Mojule bootstrap
ka bowona o romela ntle di-plugin tša rena ka moka. O ka laetša ka seatla di-plugin tša Bootstrap ka botee ka go laetša /js/dist/*.js
difaele ka tlase ga tšhupetšo ya maemo a godimo ya sephuthelwana.
Bootstrap's package.json
e na le metadata ye nngwe ya tlaleletšo ka fase ga dinotlelo tše di latelago:
sass
- tsela ya go ya go faele ya mohlodi ya Sass ye kgolo ya Bootstrapstyle
- tsela ya go ya go Bootstrap ya CSS yeo e sa fokotšwago yeo e kgobokeditšwego pele ka go diriša dipeakanyo tša go se fetoge (ga go na go tlwaetša) .
tlhale ya
Tsenya Bootstrap ka go didirišwa tša gago tšeo di šomišago Node.js ka sephuthelwana sa tlhale :
yarn add bootstrap
RubyGems ya go swana le yona
Tsenya Bootstrap ka go didirišwa tša gago tša Ruby o diriša Bundler ( e kgothaletšwa ) le RubyGems ka go oketša mola wo o latelago go ya gago Gemfile
:
gem 'bootstrap', '~> 5.0.2'
Ka go fapana le moo, ge e ba o sa šomiše Bundler, o ka tsenya lehlwa ka go sepetša taelo ye:
gem install bootstrap -v 5.0.2
Bona README ya lehlwa bakeng sa dintlha tše dingwe.
Mohlami wa mmino
O ka boela wa kenya le ho laola Bootstrap's Sass le JavaScript o sebedisa Composer :
composer require twbs/bootstrap:5.0.2
NuGet
Ge e ba o hlabolla ka go .NET, o ka tsenya gape le go laola CSS ya Bootstrap goba Sass le JavaScript o diriša NuGet :
Install-Package bootstrap
Install-Package bootstrap.sass