Salá koleka na makambo ya ntina Salta na navigation ya docs
Check

Télécharger Bootstrap mpo na kozwa CSS mpe JavaScript oyo esangisi, code source, to kotia yango na bakambi ya ba paquets oyo olingaka mingi lokola npm, RubyGems, mpe mingi mosusu.

Compilé CSS na JS

Télécharger code compilé prêt à utiliser mpo na Bootstrap v5.2.1 mpo na kokita na pete na projet na yo, oyo ezali na:

Yango esangisi te mikanda, ba fisyé ya source, to ba dépendances ya JavaScript oyo okoki kopona lokola Popper.

Kozwa

Ba fichiers ya source

Compiler Bootstrap na pipeline ya biloko na yo moko na kozwaka ba fichiers na biso ya source Sass, JavaScript, mpe ya mikanda. Option oyo esengaka mua ba outils ya kobakisa:

Should you require our full set of build tools , bazali na kati mpo na kosala Bootstrap mpe ba docs na yango, kasi bazali mbala mosusu ebongi te mpo na mikano na yo moko.

Télécharger source

Bandakisa

Soki olingi kozwa mpe kotalela bandakisa na biso , okoki kozwa bandakisa oyo esilá kotongama:

Télécharger Bandakisa

CDN na nzela ya jsDelivr

Salta téléchargement na jsDelivr pona ko livrer version cache ya CSS na JS compilé ya Bootstrap na projet na yo.

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>

Soki ozali kosalela JavaScript na biso oyo esangisi mpe olingi kokɔtisa Popper na bokeseni, bakisa Popper liboso ya JS na biso, na nzela ya CDN malamu koleka.

<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>

Bakonzi ya ba paquets

Benda na kati ba fichiers source ya Bootstrap na pene na projet nionso na ba gestionnaires ya ba paquets oyo bayebani mingi. Ata gestionnaire ya ba paquets, Bootstrap ekosenga compilateur ya Sass na Autoprefixer pona configuration oyo ekokani na ba versions compilées officielles na biso.

npm

Installez Bootstrap na ba apps na yo oyo esimbaka Node.js na package npm :

npm install [email protected]

const bootstrap = require('bootstrap')to import bootstrap from 'bootstrap'eko charger ba plugins nionso ya Bootstrap na bootstrapobjet moko. Module bootstrapyango moko e exportaka ba plugins na biso nionso. Okoki ko charger manuellement ba plugins ya Bootstrap moko moko na ko charger ba /js/dist/*.jsfichiers na se ya répertoire ya niveau ya likolo ya paquet.

Bootstrap's package.jsonezali na mwa ba métadonnées ya kobakisa na se ya ba touches oyo elandi:

  • sass- nzela ya fisyé ya source ya Sass ya monene ya Bootstrap
  • style- nzela ya CSS ya Bootstrap oyo ekitisami te oyo esalemi na kosalelaka ba paramètres par défaut (personnalisation te)
Bandá na Bootstrap na nzela ya npm na projet na biso ya kobanda! Motó na ebombelo ya modèle twbs/bootstrap-npm-starter mpo na komona ndenge ya kotonga mpe kobongisa Bootstrap na projet na yo moko ya npm. Ezali na compilateur ya Sass, Autoprefixer, Stylelint, PurgeCSS, mpe ba Icônes ya Bootstrap.

nsinga ya nsinga

Installez Bootstrap na ba apps na yo oyo esimbaka Node.js na paquet ya fil :

RubyMabanga ya ntalo

Installez Bootstrap na ba apps na yo ya Ruby na nzela ya Bundler ( recommandé ) na RubyGems na kobakisa ligne oyo elandi na yo Gemfile:

gem 'bootstrap', '~> 5.2.1'

Na lolenge mosusu, soki ozali kosalela Bundler te, okoki ko installer gem na kosala commande oyo:

gem install bootstrap -v 5.2.1

Tala README ya gem mpo na koyeba makambo mosusu.

Mokomi ya nzembo

Okoki pe ko installer pe ko gérer Sass na JavaScript ya Bootstrap na nzela ya Composer :

composer require twbs/bootstrap:5.2.1

NuGet

Soki o développer na .NET Framework, okoki pe ko installer pe ko gérer CSS ya Bootstrap to Sass na JavaScript na nzela ya NuGet . Ba projets ya sika esengeli esalela libman to méthode mosusu lokola NuGet esalemi pona code compilé, kasi ba assets frontend te.

Install-Package bootstrap
Install-Package bootstrap.sass