Svetuka kune chikuru content Svetuka kuenda kudocs navigation
in English

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

Izvi hazvisanganisire zvinyorwa, mafaera ekutanga, kana chero sarudzo yeJavaScript inotsamira sePopper.

Download

Source mafaira

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

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.

Download source

Mienzaniso

Kana iwe uchida kudhawunirodha uye kuongorora yedu mienzaniso , unogona kubata iyo yakatovakwa mienzaniso:

Dhaunirodha 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-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>

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

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 bootstrapmodule pachayo inotumira kunze ese edu plugins. Iwe unogona kurodha maplugins eBootstrap wega nekuisa /js/dist/*.jsmafaera pasi 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)
Tanga neBootstrap kuburikidza nenpm neyekutanga chirongwa chedu! Musoro kune twbs/bootstrap-npm-starter template repository kuti uone maitiro ekuvaka uye kugadzirisa Bootstrap mune yako wega npm purojekiti. Inosanganisira Sass compiler, Autoprefixer, Stylelint, PurgeCSS, uye Bootstrap Icons.

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.0.2'

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

gem install bootstrap -v 5.0.2

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.0.2

NuGet

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

Install-Package bootstrap
Install-Package bootstrap.sass