Download
Dhawunirodha Bootstrap kuti utore yakaunganidzwa CSS uye JavaScript, kodhi kodhi, kana kuisanganisira neyako yaunofarira mapakeji mamaneja senge npm, RubyGems, nezvimwe.
Dhawunirodha yakagadzirira-kushandisa-yakaunganidzwa kodhi yeBootstrap v4.1.3 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).
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.
Svetuka kurodha nejsDelivr kuti uunze vhezheni yakachengetwa yeBootstrap yakaunganidzwa CSS neJS kupurojekiti yako.
Kana uri kushandisa yedu yakaunganidzwa JavaScript, usakanganwa kusanganisira CDN shanduro jQuery uye Popper.js pamberi payo.
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.
Isa Bootstrap mune yako Node.js powered apps ine npm package :
require('bootstrap')
ichatakura ese Bootstrap's jQuery plugins pane jQuery chinhu. Iyo bootstrap
module pachayo haibudisi chero chinhu. Iwe unogona kurodha Bootstrap's jQuery plugins wega nekurodha mafaera /js/*.js
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)
Isa Bootstrap mumapurogiramu ako eRuby uchishandisa Bundler ( yakakurudzirwa ) uye RubyGems nekuwedzera mutsara unotevera kune yako Gemfile
:
Neimwe nzira, kana usiri kushandisa Bundler, unogona kuisa iyo gem nekumhanyisa uyu murairo:
Ona gem's README kuti uwane rumwe ruzivo.
Iwe unogona zvakare kuisa nekugadzirisa Bootstrap's Sass uye JavaScript uchishandisa Composer :
Kana ukagadzira mu.NET, unogonawo kuisa nekugadzirisa Bootstrap's CSS kana Sass neJavaScript uchishandisa NuGet :