Source

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 v4.4.1 kudonhedza nyore mupurojekiti yako, iyo inosanganisira:

  • Yakaunganidzwa uye yakacheneswa CSS masumbu (ona CSS mafaira ekuenzanisa )
  • Yakaunganidzwa uye yakagadziriswa JavaScript plugins

Izvi hazvisanganisire zvinyorwa, mafaera ekwakabva, kana chero sarudzo dzeJavaScript dzinotsamira (jQuery nePopper.js).

Download

Source mafaira

Unganidza Bootstrap neako ega pombi pombi nekudhawunirodha yedu sosi Sass, JavaScript, uye zvinyorwa zvinyorwa. Iyi sarudzo inoda mamwe maturusi ekuwedzera:

  • Sass compiler (Libsass kana Ruby Sass inotsigirwa) yekunyora CSS yako.
  • Autoprefixer yeCSS mutengesi prefixing

Kana iwe uchida maturusi ekuvaka , anosanganisirwa kugadzira Bootstrap uye zvinyorwa zvayo, asi anogona kunge asina kukodzera kune ako pachako zvinangwa.

Download source

jsDelivr

Svetuka kurodha nejsDelivr kuti uunze vhezheni yakachengetwa yeBootstrap yakaunganidzwa CSS neJS kupurojekiti yako.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>

Kana uri kushandisa yedu yakaunganidzwa JavaScript, usakanganwa kusanganisira CDN shanduro jQuery uye Popper.js pamberi payo.

<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" 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

require('bootstrap')ichatakura ese Bootstrap's jQuery plugins pane jQuery chinhu. Iyo bootstrapmodule pachayo haibudisi chero chinhu. Iwe unogona kurodha Bootstrap's jQuery plugins wega nekurodha mafaera /js/*.jspasi pepakeji yepamusoro-level directory.

Bootstrap's package.jsonine imwezve metadata pasi pemakiyi anotevera:

  • sass- nzira yeBootstrap's main Sass source file
  • style- 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', '~> 4.4.1'

Neimwe nzira, kana usiri kushandisa Bundler, unogona kuisa iyo gem nekumhanyisa uyu murairo:

gem install bootstrap -v 4.4.1

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

NuGet

Kana ukagadzira mu.NET, unogonawo kuisa nekugadzirisa Bootstrap's CSS kana Sass neJavaScript uchishandisa NuGet :

Install-Package bootstrap
Install-Package bootstrap.sass