Source

Kozwa

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 v4.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 (jQuery mpe Popper.js).

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:

  • Compilateur ya Sass (Libsass to Ruby Sass esungami) pona ko compiler CSS na yo.
  • Autoprefixer mpo na liboso ya motɛkisi ya CSS

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

Télécharger source

jsDelivr oyo azali kosala

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

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>

Soki ozali kosalela JavaScript na biso oyo esangisi, kobosana te kotya ba versions CDN ya jQuery mpe Popper.js liboso na yango.

<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-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" 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 bootstrap

require('bootstrap')eko charger ba plugins nionso ya jQuery ya Bootstrap na objet jQuery. Module bootstrapyango moko e exportaka eloko te. Okoki ko charger manuellement ba plugins jQuery ya Bootstrap moko moko na ko charger ba /js/*.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 esili kosala liboso na kosalelaka ba paramètres ya liboso (personnalisation te)

nsinga ya nsinga

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

yarn add bootstrap

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', '~> 4.2.1'

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

gem install bootstrap -v 4.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:4.2.1

NuGet

Soki o développer na .NET, okoki pe ko installer pe ko gérer CSS to Sass na JavaScript ya Bootstrap na nzela ya NuGet :

Install-Package bootstrap
Install-Package bootstrap.sass