Source

Telechaje

Telechaje Bootstrap pou jwenn konpile CSS ak JavaScript, kòd sous, oswa mete li ak manadjè pake pi renmen ou tankou npm, RubyGems, ak plis ankò.

Konpile CSS ak JS

Telechaje kòd konpile ki pare pou itilize pou Bootstrap v4.1.3 pou fasil lage nan pwojè ou a, ki gen ladann:

  • Pakèt CSS konpile ak minified (gade konparezon dosye CSS )
  • Konpile ak minified plugins JavaScript

Sa a pa enkli dokimantasyon, dosye sous, oswa nenpòt depandans JavaScript opsyonèl (jQuery ak Popper.js).

Telechaje

Fichye sous yo

Konpile Bootstrap ak tiyo pwòp avantaj ou lè w telechaje sous nou an Sass, JavaScript, ak dosye dokiman. Opsyon sa a mande pou kèk zouti adisyonèl:

  • Sass du (Libsass oswa Ruby Sass sipòte) pou konpile CSS ou.
  • Autoprefixer pou CSS vandè prefiks

Si w ta bezwen zouti bati , yo enkli pou devlope Bootstrap ak dokiman li yo, men yo gen anpil chans pou yo pa apwopriye pou pwòp rezon ou yo.

Telechaje sous

jsDelivr

Sote download la ak jsDelivr pou delivre vèsyon kachèt CSS ak JS konpile Bootstrap nan pwojè ou a.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>

Si w ap itilize JavaScript konpile nou an, pa bliye mete vèsyon CDN nan jQuery ak Popper.js anvan li.

<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-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>

Manadjè pake

Rale dosye sous Bootstrap yo nan prèske nenpòt pwojè ak kèk nan manadjè pake ki pi popilè yo. Kèlkeswa manadjè pake a, Bootstrap pral mande pou yon du Sass ak Autoprefixer pou yon konfigirasyon ki matche ak vèsyon ofisyèl nou yo konpile.

npm

Enstale Bootstrap nan aplikasyon Node.js ou yo ak pake npm :

npm install bootstrap

require('bootstrap')pral chaje tout plugins jQuery Bootstrap yo sou objè jQuery la. Modil bootstrapla li menm pa ekspòte anyen. Ou ka manyèlman chaje plugins jQuery Bootstrap yo endividyèlman lè w chaje /js/*.jsfichye yo anba anyè pi wo nivo pake a.

Bootstrap a package.jsongen kèk metadata adisyonèl anba kle sa yo:

  • sass- chemen nan prensipal dosye sous Sass Bootstrap la
  • style- chemen nan CSS ki pa minified Bootstrap a ki te prekonpile lè l sèvi avèk paramèt default yo (pa gen okenn personnalisation)

RubyGems

Enstale Bootstrap nan aplikasyon Ruby ou yo lè l sèvi avèk Bundler ( rekòmande ) ak RubyGems lè w ajoute liy sa a nan ou Gemfile:

gem 'bootstrap', '~> 4.1.3'

Altènativman, si w pa itilize Bundler, ou ka enstale gem a lè w ap kouri lòd sa a:

gem install bootstrap -v 4.1.3

Gade README gem a pou plis detay.

Konpozitè

Ou kapab tou enstale ak jere Bootstrap a Sass ak JavaScript lè l sèvi avèk Composer :

composer require twbs/bootstrap:4.1.3

NuGet

Si w devlope nan .NET, ou kapab tou enstale ak jere CSS oswa Sass ak JavaScript Bootstrap a lè l sèvi avèk NuGet :

Install-Package bootstrap
Install-Package bootstrap.sass