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 v5.1.3 pou fasil lage nan pwojè ou a, ki gen ladan l:
- Pakèt CSS konpile ak minified (gade konparezon dosye CSS )
- Konpile ak minified plugins JavaScript (gade konparezon dosye JS )
Sa a pa enkli dokimantasyon, dosye sous, oswa nenpòt depandans JavaScript opsyonèl tankou Popper.
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 pou konpile dosye sous Sass nan dosye CSS
- Autoprefixer pou CSS vandè prefiks
Si w ta bezwen tout seri zouti konstriksyon nou an , yo enkli yo pou devlope Bootstrap ak dokiman li yo, men yo gen anpil chans pou yo pa apwopriye pou pwòp rezon ou yo.
Egzanp yo
Si ou vle telechaje ak egzamine egzanp nou yo , ou ka pwan egzanp yo deja bati:
CDN atravè jsDelivr
Sote download la ak jsDelivr pou delivre vèsyon kachèt CSS ak JS konpile Bootstrap nan pwojè ou a.
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
Si w ap itilize JavaScript konpile nou an epi w pito mete Popper apa, ajoute Popper anvan JS nou an, atravè yon CDN de preferans.
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" 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
const bootstrap = require('bootstrap')
or import bootstrap from 'bootstrap'
will load all of Bootstrap’s plugins onto a bootstrap
object. The bootstrap
module itself exports all of our plugins. You can manually load Bootstrap’s plugins individually by loading the /js/dist/*.js
files under the package’s top-level directory.
Bootstrap’s package.json
contains some additional metadata under the following keys:
sass
- path to Bootstrap’s main Sass source filestyle
- path to Bootstrap’s non-minified CSS that’s been precompiled using the default settings (no customization)
yarn
Install Bootstrap in your Node.js powered apps with the yarn package:
yarn add bootstrap
RubyGems
Install Bootstrap in your Ruby apps using Bundler (recommended) and RubyGems by adding the following line to your Gemfile
:
gem 'bootstrap', '~> 5.1.3'
Alternatively, if you’re not using Bundler, you can install the gem by running this command:
gem install bootstrap -v 5.1.3
See the gem’s README for further details.
Composer
You can also install and manage Bootstrap’s Sass and JavaScript using Composer:
composer require twbs/bootstrap:5.1.3
NuGet
If you develop in .NET, you can also install and manage Bootstrap’s CSS or Sass and JavaScript using NuGet:
Install-Package bootstrap
Install-Package bootstrap.sass