Source

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 v4.2.1 ho habonolo lahlela 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šeo di kgobokeditšwego le go fokotšwa

Se ga se akaretše ditokomane, difaele tša mothopo, goba ditshepetšo dife goba dife tša JavaScript tša boikhethelo (jQuery le Popper.js).

Taonelouta

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:

  • Mokgoboketši wa Sass (Libsass goba Ruby Sass e a thekgwa) bakeng sa go kgoboketša CSS ya gago.
  • Sehlongwapele sa go itiriša sa hlogo ya morekiši wa CSS

Should you require build tools , di akareditšwe bakeng sa go hlabolla Bootstrap le di-doc tša yona, eupša go bonagala di sa swanela merero ya gago.

Download mohlodi

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 rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>

Ge e ba o diriša JavaScript ya rena yeo e kgobokeditšwego, o se ke wa lebala go akaretša diphetolelo tša CDN tša jQuery le Popper.js pele ga yona.

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" 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

require('bootstrap')e tla laetša di-plugin ka moka tša jQuery tša Bootstrap godimo ga selo sa jQuery. Mojule bootstrapka bowona ga o romele ntle selo. O ka laetša ka seatla di-plugin tša jQuery tša Bootstrap ka botee ka go laetša /js/*.jsdifaele ka tlase ga tšhupetšo ya maemo a godimo ya sephuthelwana.

Bootstrap's package.jsone 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 Bootstrap
  • style- 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', '~> 4.2.1'

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 4.2.1

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:4.2.1

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